trac-12244: fix detection of wchar_t availability

This commit is contained in:
James E. King III committed 2018-10-14 10:11:41 -04:00
1 parent f890fcdf66
commit b65ddb430a
2 files changed
+15 -3

No files matched your search

+12
View File
@@ -20,6 +20,18 @@ int test_main(int, char*[])
tribool x;
#if !defined(BOOST_NO_CWCHAR) && !defined(BOOST_NO_STD_WSTRING)
std::wostringstream wout;
wout << std::boolalpha << tribool(false);
BOOST_CHECK(wout.str() == L"false");
wout.str(std::wstring());
wout << std::boolalpha << tribool(true);
BOOST_CHECK(wout.str() == L"true");
wout.str(std::wstring());
wout << std::boolalpha << tribool(indeterminate);
BOOST_CHECK(wout.str() == L"indeterminate");
#endif
// Check tribool output
std::ostringstream out;