Add unary plus

This commit is contained in:
Peter Dimov 2021-06-27 05:19:51 +03:00
parent a3cb2d75f4
commit 882d13e6e4
2 changed files with 6 additions and 0 deletions

View File

@ -89,6 +89,8 @@ namespace lambda2_detail
BOOST_LAMBDA2_BINARY_FN(<<, left_shift)
BOOST_LAMBDA2_BINARY_FN(>>, right_shift)
BOOST_LAMBDA2_PREFIX_FN(+, unary_plus)
// operators
template<class T> using remove_cvref_t = std::remove_cv_t<std::remove_reference_t<T>>;
@ -148,6 +150,8 @@ BOOST_LAMBDA2_UNARY_LAMBDA(~, std::bit_not<>)
BOOST_LAMBDA2_BINARY_LAMBDA(<<, lambda2_detail::left_shift)
BOOST_LAMBDA2_BINARY_LAMBDA(>>, lambda2_detail::right_shift)
BOOST_LAMBDA2_UNARY_LAMBDA(+, lambda2_detail::unary_plus)
} // namespace lambda2
} // namespace boost

View File

@ -63,5 +63,7 @@ int main()
TEST_BINARY(<<)
TEST_BINARY(>>)
TEST_UNARY(+)
return boost::report_errors();
}