Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Commit

Permalink
Add operator* for rvalue reference. (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
rnburn authored Mar 13, 2018
1 parent 6fc9fac commit 44e7448
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 3rd_party/include/opentracing/expected/expected.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,12 @@ class expected
return assert( has_value() ), std::move( contained.value() );
}

value_type && operator *() &&
{
return assert( has_value() ), std::move( contained.value() );
}


constexpr explicit operator bool() const noexcept
{
return has_value();
Expand Down

0 comments on commit 44e7448

Please sign in to comment.