From 19bb08cf17cffba726875a906ba0be8fdfa15cd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sun, 29 May 2022 17:58:56 +0200 Subject: [PATCH] Make identity operator() const --- include/boost/move/detail/meta_utils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/move/detail/meta_utils.hpp b/include/boost/move/detail/meta_utils.hpp index d23012e..7c90de2 100644 --- a/include/boost/move/detail/meta_utils.hpp +++ b/include/boost/move/detail/meta_utils.hpp @@ -225,7 +225,7 @@ struct identity { typedef T type; typedef typename add_const_lvalue_reference::type reference; - BOOST_MOVE_FORCEINLINE reference operator()(reference t) + BOOST_MOVE_FORCEINLINE reference operator()(reference t) const { return t; } };