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 <sstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
#ifndef BOOST_NO_STD_LOCALE
|
||||||
# include <locale>
|
# include <locale>
|
||||||
|
#endif
|
||||||
|
|
||||||
int test_main(int, char*[])
|
int test_main(int, char*[])
|
||||||
{
|
{
|
||||||
@@ -41,6 +44,7 @@ int test_main(int, char*[])
|
|||||||
<< std::endl;
|
<< std::endl;
|
||||||
BOOST_TEST(out.str() == "2");
|
BOOST_TEST(out.str() == "2");
|
||||||
|
|
||||||
|
#ifndef BOOST_NO_STD_LOCALE
|
||||||
const std::numpunct<char>& punct =
|
const std::numpunct<char>& punct =
|
||||||
BOOST_USE_FACET(std::numpunct<char>, out.getloc());
|
BOOST_USE_FACET(std::numpunct<char>, out.getloc());
|
||||||
|
|
||||||
@@ -80,6 +84,7 @@ int test_main(int, char*[])
|
|||||||
<< std::endl;
|
<< std::endl;
|
||||||
BOOST_TEST(out.str() == "maybe");
|
BOOST_TEST(out.str() == "maybe");
|
||||||
# endif
|
# endif
|
||||||
|
#endif // ! BOOST_NO_STD_LOCALE
|
||||||
|
|
||||||
// Checking tribool input
|
// Checking tribool input
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user