forked from boostorg/container_hash
Implement the compile time checks for hash functions as a function instead of a templated class. Hopefully it will work on more compilers.
[SVN r28053]
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
|
||||
BOOST_AUTO_UNIT_TEST(string_tests)
|
||||
{
|
||||
BOOST_CHECK(compile_time_tests<std::string>::success);
|
||||
compile_time_tests((std::string*) 0);
|
||||
|
||||
HASH_NAMESPACE::hash<std::string> x1;
|
||||
HASH_NAMESPACE::hash<std::string> x2;
|
||||
@@ -34,7 +34,7 @@ BOOST_AUTO_UNIT_TEST(string_tests)
|
||||
#if !defined(BOOST_NO_STD_WSTRING)
|
||||
BOOST_AUTO_UNIT_TEST(wstring_tests)
|
||||
{
|
||||
BOOST_CHECK(compile_time_tests<std::wstring>::success);
|
||||
compile_time_tests((std::wstring*) 0);
|
||||
|
||||
HASH_NAMESPACE::hash<std::wstring> x1;
|
||||
HASH_NAMESPACE::hash<std::wstring> x2;
|
||||
|
||||
Reference in New Issue
Block a user