mirror of
https://github.com/boostorg/optional.git
synced 2026-07-06 08:30:56 +02:00
Add more robust constexpr support
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
#include "boost/type_traits/is_base_of.hpp"
|
||||
#include "boost/optional/detail/experimental_traits.hpp"
|
||||
|
||||
#ifndef BOOST_OPTIONAL_USES_CONSTEXPR_IMPLEMENTATION
|
||||
#ifndef BOOST_OPTIONAL_USES_UNION_IMPLEMENTATION
|
||||
#ifndef BOOST_OPTIONAL_DETAIL_NO_DEFAULTED_MOVE_FUNCTIONS
|
||||
|
||||
struct PrivDefault
|
||||
@@ -136,11 +136,11 @@ void test_trivial_copyability()
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif // BOOST_OPTIONAL_USES_CONSTEXPR_IMPLEMENTATION
|
||||
#endif // BOOST_OPTIONAL_USES_UNION_IMPLEMENTATION
|
||||
|
||||
int main()
|
||||
{
|
||||
#ifndef BOOST_OPTIONAL_USES_CONSTEXPR_IMPLEMENTATION
|
||||
#ifndef BOOST_OPTIONAL_USES_UNION_IMPLEMENTATION
|
||||
#ifndef BOOST_OPTIONAL_DETAIL_NO_DEFAULTED_MOVE_FUNCTIONS
|
||||
test_type_traits();
|
||||
test_trivial_copyability();
|
||||
|
||||
Reference in New Issue
Block a user