mirror of
https://github.com/boostorg/lambda2.git
synced 2025-05-11 05:33:57 +00:00
Add unary plus
This commit is contained in:
parent
a3cb2d75f4
commit
882d13e6e4
@ -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
|
||||
|
||||
|
@ -63,5 +63,7 @@ int main()
|
||||
TEST_BINARY(<<)
|
||||
TEST_BINARY(>>)
|
||||
|
||||
TEST_UNARY(+)
|
||||
|
||||
return boost::report_errors();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user