<boost/unordered/hash_traits.hpp> no longer requires C++11

This commit is contained in:
Peter Dimov
2022-11-01 02:35:51 +02:00
parent 228f7db5d3
commit f5f5476dcc
2 changed files with 2 additions and 28 deletions

View File

@@ -4,22 +4,8 @@
#include <boost/container_hash/hash.hpp> #include <boost/container_hash/hash.hpp>
#include <boost/core/lightweight_test_trait.hpp> #include <boost/core/lightweight_test_trait.hpp>
#include <boost/config.hpp>
#include <boost/config/pragma_message.hpp>
#if defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS)
BOOST_PRAGMA_MESSAGE( "Test skipped, BOOST_NO_CXX11_HDR_TYPE_TRAITS is defined" )
int main() {}
#elif defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
BOOST_PRAGMA_MESSAGE( "Test skipped, BOOST_NO_CXX11_TEMPLATE_ALIASES is defined" )
int main() {}
#else
#include <boost/unordered/hash_traits.hpp> #include <boost/unordered/hash_traits.hpp>
#include <boost/config.hpp>
#include <string> #include <string>
enum my_char { min = 0, max = 255 }; enum my_char { min = 0, max = 255 };
@@ -53,5 +39,3 @@ int main()
return boost::report_errors(); return boost::report_errors();
} }
#endif

View File

@@ -7,17 +7,7 @@
#include <boost/config.hpp> #include <boost/config.hpp>
#include <boost/config/pragma_message.hpp> #include <boost/config/pragma_message.hpp>
#if defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS) #if defined(BOOST_NO_CXX17_HDR_STRING_VIEW)
BOOST_PRAGMA_MESSAGE( "Test skipped, BOOST_NO_CXX11_HDR_TYPE_TRAITS is defined" )
int main() {}
#elif defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
BOOST_PRAGMA_MESSAGE( "Test skipped, BOOST_NO_CXX11_TEMPLATE_ALIASES is defined" )
int main() {}
#elif defined(BOOST_NO_CXX17_HDR_STRING_VIEW)
BOOST_PRAGMA_MESSAGE( "Test skipped, BOOST_NO_CXX17_HDR_STRING_VIEW is defined" ) BOOST_PRAGMA_MESSAGE( "Test skipped, BOOST_NO_CXX17_HDR_STRING_VIEW is defined" )
int main() {} int main() {}