forked from boostorg/type_traits
Make constexpr functions const.
This commit is contained in:
@ -67,7 +67,7 @@ namespace boost{
|
||||
static const char data[sizeof(long)] = { 0 };
|
||||
return dereference(reinterpret_cast<const mpl::integral_c<T, val>*>(&data));
|
||||
}
|
||||
BOOST_CONSTEXPR operator T const() { return val; }
|
||||
BOOST_CONSTEXPR operator T const()const { return val; }
|
||||
};
|
||||
|
||||
template <class T, T val>
|
||||
@ -91,7 +91,7 @@ namespace boost{
|
||||
static const char data = 0;
|
||||
return dereference(reinterpret_cast<const mpl::bool_<val>*>(&data));
|
||||
}
|
||||
BOOST_CONSTEXPR operator bool const() { return val; }
|
||||
BOOST_CONSTEXPR operator bool const()const { return val; }
|
||||
};
|
||||
|
||||
template <bool val>
|
||||
|
Reference in New Issue
Block a user