boost_no_std_use_facet.ipp 646 B

1234567891011121314151617181920212223242526272829
  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_USE_FACET
  7. // TITLE: std::use_facet
  8. // DESCRIPTION: The standard library lacks a conforming std::use_facet.
  9. #include <locale>
  10. namespace boost_no_std_use_facet{
  11. int test()
  12. {
  13. std::locale l;
  14. const std::ctype<char>& ct = std::use_facet<std::ctype<char> >(l);
  15. (void)ct;
  16. return 0;
  17. }
  18. }