From 0d7bc2eaf98bd0ebac009a575db932d88552574f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Mon, 7 Oct 2024 23:12:01 +0200 Subject: [PATCH] Simplify core.hpp using "meta_utils_core.hpp" instead of "meta_utils.hpp" --- include/boost/move/core.hpp | 2 +- include/boost/move/detail/meta_utils.hpp | 16 ---------------- include/boost/move/detail/meta_utils_core.hpp | 15 +++++++++++++++ 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/include/boost/move/core.hpp b/include/boost/move/core.hpp index 7b604e6..e5e82ca 100644 --- a/include/boost/move/core.hpp +++ b/include/boost/move/core.hpp @@ -447,7 +447,7 @@ #else //!defined(BOOST_MOVE_MSVC_AUTO_MOVE_RETURN_BUG) || defined(BOOST_MOVE_DOXYGEN_INVOKED) - #include + #include namespace boost { namespace move_detail { diff --git a/include/boost/move/detail/meta_utils.hpp b/include/boost/move/detail/meta_utils.hpp index 5d17ba8..6e12b17 100644 --- a/include/boost/move/detail/meta_utils.hpp +++ b/include/boost/move/detail/meta_utils.hpp @@ -200,22 +200,6 @@ struct add_const_lvalue_reference ::type type; }; -////////////////////////////////////// -// is_lvalue_reference -////////////////////////////////////// -template -struct is_lvalue_reference -{ - static const bool value = false; -}; - -template -struct is_lvalue_reference -{ - static const bool value = true; -}; - - ////////////////////////////////////// // identity ////////////////////////////////////// diff --git a/include/boost/move/detail/meta_utils_core.hpp b/include/boost/move/detail/meta_utils_core.hpp index 4e11673..fcd04c7 100644 --- a/include/boost/move/detail/meta_utils_core.hpp +++ b/include/boost/move/detail/meta_utils_core.hpp @@ -131,6 +131,21 @@ struct enable_if_same : enable_if, R> {}; template struct disable_if_same : disable_if, R> {}; +////////////////////////////////////// +// is_lvalue_reference +////////////////////////////////////// +template +struct is_lvalue_reference +{ + static const bool value = false; +}; + +template +struct is_lvalue_reference +{ + static const bool value = true; +}; + } //namespace move_detail { } //namespace boost {