1
0
forked from boostorg/move

Add BOOST_Add BOOST_MOVE_FORCEINLINE to bool_

This commit is contained in:
Ion Gaztañaga
2022-05-03 22:59:05 +02:00
parent 09a6c8a66e
commit 1cd013d3c1

View File

@@ -57,8 +57,8 @@ struct apply
template< bool C_ > template< bool C_ >
struct bool_ : integral_constant<bool, C_> struct bool_ : integral_constant<bool, C_>
{ {
operator bool() const { return C_; } BOOST_MOVE_FORCEINLINE operator bool() const { return C_; }
bool operator()() const { return C_; } BOOST_MOVE_FORCEINLINE bool operator()() const { return C_; }
}; };
typedef bool_<true> true_; typedef bool_<true> true_;
@@ -225,7 +225,7 @@ struct identity
{ {
typedef T type; typedef T type;
typedef typename add_const_lvalue_reference<T>::type reference; typedef typename add_const_lvalue_reference<T>::type reference;
reference operator()(reference t) BOOST_MOVE_FORCEINLINE reference operator()(reference t)
{ return t; } { return t; }
}; };