Skip to content

Commit

Permalink
Fix strong_typedef_op's moves (foonathan#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohelEGP authored and foonathan committed Nov 14, 2017
1 parent ca06a21 commit 8191a8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/type_safe/strong_typedef.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ namespace type_safe
constexpr Result operator Op(Name<StrongTypedef>&& lhs, const Name<StrongTypedef>& rhs) \
{ \
return Result( \
detail::get_underlying<StrongTypedef>(static_cast<StrongTypedef&>(lhs)) \
detail::get_underlying<StrongTypedef>(static_cast<StrongTypedef&&>(lhs)) \
Op detail::get_underlying<StrongTypedef>(static_cast<const StrongTypedef&>(rhs))); \
} \
/** \exclude */ \
Expand All @@ -221,7 +221,7 @@ namespace type_safe
template <class StrongTypedef> \
constexpr Result operator Op(Name<StrongTypedef>&& lhs, Name<StrongTypedef>&& rhs) \
{ \
return Result(detail::get_underlying<StrongTypedef>(static_cast<StrongTypedef&>( \
return Result(detail::get_underlying<StrongTypedef>(static_cast<StrongTypedef&&>( \
lhs)) Op detail::get_underlying<StrongTypedef>(static_cast<StrongTypedef&&>(rhs))); \
} \
/* mixed */ \
Expand Down

0 comments on commit 8191a8f

Please sign in to comment.