boost_no_std_locale.ipp 828 B

123456789101112131415161718192021222324252627282930313233343536
  1. // (C) Copyright John Maddock 2001.
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. // See http://www.boost.org/libs/config for the most recent version.
  6. // MACRO: BOOST_NO_STD_LOCALE
  7. // TITLE: std::locale
  8. // DESCRIPTION: The standard library lacks std::locale.
  9. #include <locale>
  10. namespace boost_no_std_locale{
  11. int test()
  12. {
  13. std::locale l1;
  14. //
  15. // ideally we would construct a locale from a facet,
  16. // but that requires template member functions which
  17. // may not be available, instead just check that we can
  18. // construct a pointer to a facet:
  19. //
  20. const std::ctype<char>* pct = 0;
  21. (void) &l1;
  22. (void) &pct;
  23. return 0;
  24. }
  25. }