forked from boostorg/logic
Don't run the locale tests when locales aren't supported
[SVN r23470]
This commit is contained in:
@@ -8,7 +8,10 @@
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
#ifndef BOOST_NO_STD_LOCALE
|
||||
# include <locale>
|
||||
#endif
|
||||
|
||||
int test_main(int, char*[])
|
||||
{
|
||||
@@ -41,6 +44,7 @@ int test_main(int, char*[])
|
||||
<< std::endl;
|
||||
BOOST_TEST(out.str() == "2");
|
||||
|
||||
#ifndef BOOST_NO_STD_LOCALE
|
||||
const std::numpunct<char>& punct =
|
||||
BOOST_USE_FACET(std::numpunct<char>, out.getloc());
|
||||
|
||||
@@ -80,6 +84,7 @@ int test_main(int, char*[])
|
||||
<< std::endl;
|
||||
BOOST_TEST(out.str() == "maybe");
|
||||
# endif
|
||||
#endif // ! BOOST_NO_STD_LOCALE
|
||||
|
||||
// Checking tribool input
|
||||
|
||||
|
Reference in New Issue
Block a user