Skip to content

Commit

Permalink
Clean remnants of StaticAssert and mpl
Browse files Browse the repository at this point in the history
  • Loading branch information
akrzemi1 committed Oct 16, 2024
1 parent e601f1e commit 5e7fdf5
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 9 deletions.
2 changes: 0 additions & 2 deletions include/boost/optional/detail/optional_utility.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
1 change: 0 additions & 1 deletion include/boost/optional/optional.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ include(BoostTestJamfile OPTIONAL RESULT_VARIABLE HAVE_BOOST_TEST)

if(HAVE_BOOST_TEST)

boost_test_jamfile(FILE Jamfile.v2 LINK_LIBRARIES Boost::optional Boost::core Boost::bind Boost::mpl Boost::tuple)
boost_test_jamfile(FILE Jamfile.v2 LINK_LIBRARIES Boost::optional Boost::core Boost::bind Boost::tuple)

endif()
4 changes: 2 additions & 2 deletions test/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ project
cxx11_defaulted_moves
cxx11_deleted_functions
cxx11_explicit_conversion_operators
cxx11_noexcept
# cxx11_noexcept
cxx11_rvalue_references
cxx11_variadic_templates
]
;


run optional_test.cpp : : : <library>/boost/bind//boost_bind <library>/boost/mpl//boost_mpl ;
run optional_test.cpp : : : <library>/boost/bind//boost_bind ;
run optional_test_assign.cpp ;
run optional_test_swap.cpp ;
compile optional_test_wuninitialized.cpp ;
Expand Down
2 changes: 0 additions & 2 deletions test/optional_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
#include "boost/bind/apply.hpp" // Included just to test proper interaction with boost::apply<> as reported by Daniel Wallin
#endif
#include "boost/mpl/bool.hpp"
#include "boost/mpl/bool_fwd.hpp" // For mpl::true_ and mpl::false_

#include "boost/optional/optional.hpp"

Expand Down
1 change: 0 additions & 1 deletion test/optional_test_noexcept_move.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// You are welcome to contact the author at:
// [email protected]

#include "boost/static_assert.hpp"
#include "boost/optional/optional.hpp"

#ifdef BOOST_BORLANDC
Expand Down

0 comments on commit 5e7fdf5

Please sign in to comment.