mirror of
https://github.com/boostorg/move.git
synced 2025-09-26 15:50:55 +02:00
Make identity operator() const
This commit is contained in:
@@ -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;
|
||||||
BOOST_MOVE_FORCEINLINE reference operator()(reference t)
|
BOOST_MOVE_FORCEINLINE reference operator()(reference t) const
|
||||||
{ return t; }
|
{ return t; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user