mirror of
https://github.com/boostorg/type_traits.git
synced 2025-08-02 05:54:31 +02:00
Revert "Make constexpr return values const to suppress clang warnings."
This reverts commit cae9001400
.
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()const { return val; }
|
||||
BOOST_CONSTEXPR operator T()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()const { return val; }
|
||||
BOOST_CONSTEXPR operator bool()const { return val; }
|
||||
};
|
||||
|
||||
template <bool val>
|
||||
|
Reference in New Issue
Block a user