boost_no_std_messages.ipp 813 B

123456789101112131415161718192021222324252627282930313233343536373839
  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_MESSAGES
  7. // TITLE: std::messages<charT>
  8. // DESCRIPTION: The standard library lacks a conforming std::messages facet.
  9. #include <locale>
  10. namespace boost_no_std_messages{
  11. //
  12. // this just has to complile, not run:
  13. //
  14. void test_messages(const std::messages<char>& m)
  15. {
  16. static const std::locale l;
  17. static const std::string name("foobar");
  18. m.close(m.open(name, l));
  19. }
  20. int test()
  21. {
  22. const std::messages<char>* pmf = 0;
  23. (void) &pmf;
  24. return 0;
  25. }
  26. }