1
0
forked from boostorg/move

Make identity operator() const

This commit is contained in:
Ion Gaztañaga
2022-05-29 17:58:56 +02:00
parent 17012d5aae
commit 19bb08cf17

View File

@ -225,7 +225,7 @@ struct identity
{
typedef T type;
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; }
};