mirror of
https://github.com/boostorg/container_hash.git
synced 2025-08-04 15:04:39 +02:00
<boost/unordered/hash_traits.hpp> no longer requires C++11
This commit is contained in:
@@ -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
|
|
||||||
|
@@ -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() {}
|
||||||
|
Reference in New Issue
Block a user