mirror of
https://github.com/boostorg/optional.git
synced 2025-11-03 09:12:11 +01:00
Clean remnants of StaticAssert and mpl
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user