Clean remnants of StaticAssert and mpl

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

View File

@@ -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);
}

View File

@@ -28,7 +28,6 @@
#include <boost/core/invoke_swap.hpp>
#include <boost/core/launder.hpp>
#include <boost/optional/bad_optional_access.hpp>
#include <boost/static_assert.hpp>
#include <boost/throw_exception.hpp>
#include <boost/type_traits/alignment_of.hpp>
#include <boost/type_traits/conditional.hpp>