forked from boostorg/optional
Clean remnants of StaticAssert and mpl
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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