forked from boostorg/logic
trac-12244: fix detection of wchar_t availability
This commit is contained in:
1 parent
f890fcdf66
commit
b65ddb430a
2 files changed
+15
-3
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user