Simplify core.hpp using "meta_utils_core.hpp" instead of "meta_utils.hpp"

This commit is contained in:
Ion Gaztañaga
2024-10-07 23:12:01 +02:00
parent 7430e92339
commit 0d7bc2eaf9
3 changed files with 16 additions and 17 deletions

View File

@ -447,7 +447,7 @@
#else //!defined(BOOST_MOVE_MSVC_AUTO_MOVE_RETURN_BUG) || defined(BOOST_MOVE_DOXYGEN_INVOKED)
#include <boost/move/detail/meta_utils.hpp>
#include <boost/move/detail/meta_utils_core.hpp>
namespace boost {
namespace move_detail {

View File

@ -200,22 +200,6 @@ struct add_const_lvalue_reference
<t_unreferenced_const>::type type;
};
//////////////////////////////////////
// is_lvalue_reference
//////////////////////////////////////
template<class T>
struct is_lvalue_reference
{
static const bool value = false;
};
template<class T>
struct is_lvalue_reference<T&>
{
static const bool value = true;
};
//////////////////////////////////////
// identity
//////////////////////////////////////

View File

@ -131,6 +131,21 @@ struct enable_if_same : enable_if<is_same<T, U>, R> {};
template <class T, class U, class R = enable_if_nat>
struct disable_if_same : disable_if<is_same<T, U>, R> {};
//////////////////////////////////////
// is_lvalue_reference
//////////////////////////////////////
template<class T>
struct is_lvalue_reference
{
static const bool value = false;
};
template<class T>
struct is_lvalue_reference<T&>
{
static const bool value = true;
};
} //namespace move_detail {
} //namespace boost {