Skip to content

Commit

Permalink
Only support std::wstring when wchar_t is available
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljames committed Nov 18, 2016
1 parent 3651b46 commit f230731
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hash/test/hash_string_test.cpp
Expand Up @@ -55,7 +55,7 @@ void string0_tests()
BOOST_TEST(hasher(x3) != hasher(x4));
}

#if !defined(BOOST_NO_STD_WSTRING)
#if !defined(BOOST_NO_STD_WSTRING) && !defined(BOOST_NO_INTRINSIC_WCHAR_T)
void wstring_tests()
{
compile_time_tests((std::wstring*) 0);
Expand Down Expand Up @@ -84,7 +84,7 @@ int main()
{
string_tests();
string0_tests();
#if !defined(BOOST_NO_STD_WSTRING)
#if !defined(BOOST_NO_STD_WSTRING) && !defined(BOOST_NO_INTRINSIC_WCHAR_T)
wstring_tests();
#endif
return boost::report_errors();
Expand Down
2 changes: 1 addition & 1 deletion include/boost/functional/hash/hash.hpp
Expand Up @@ -468,7 +468,7 @@ namespace boost
BOOST_HASH_SPECIALIZE(long double)

BOOST_HASH_SPECIALIZE_REF(std::string)
#if !defined(BOOST_NO_STD_WSTRING)
#if !defined(BOOST_NO_STD_WSTRING) && !defined(BOOST_NO_INTRINSIC_WCHAR_T)
BOOST_HASH_SPECIALIZE_REF(std::wstring)
#endif

Expand Down

0 comments on commit f230731

Please sign in to comment.