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:
Daniel James
2005-04-07 22:14:02 +00:00
parent e24a93d8c6
commit 896e07cca7
4 changed files with 6 additions and 7 deletions
+2 -2
View File
@@ -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;