Clean remnants of StaticAssert and mpl

This commit is contained in:
Andrzej Krzemienski committed 2024-10-16 23:42:56 +02:00
1 parent e601f1ef2d
commit 5e7fdf5ec5
6 files changed
+3 -9

No files matched your search

@@ -25,9 +25,7 @@ inline constexpr T&& forward(typename boost::remove_reference<T>::type& t) noexc
template <class T>
inline constexpr T&& forward(typename boost::remove_reference<T>::type&& t) noexcept
{
#ifndef BOOST_NO_CXX11_STATIC_ASSERT
static_assert(!boost::is_lvalue_reference<T>::value, "Can not forward an rvalue as an lvalue.");
#endif
return static_cast<T&&>(t);
}