boost_no_cxx11_hdr_codecvt.ipp 798 B

1234567891011121314151617181920212223242526272829
  1. // (C) Copyright Beman Dawes 2009
  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 more information.
  6. // MACRO: BOOST_NO_CXX11_HDR_CODECVT
  7. // TITLE: C++0x header <codecvt> unavailable
  8. // DESCRIPTION: The standard library does not supply C++0x header <codecvt>
  9. #include <codecvt>
  10. #include <locale> // for wstring_convert
  11. namespace boost_no_cxx11_hdr_codecvt {
  12. int test()
  13. {
  14. using std::codecvt_utf8;
  15. using std::codecvt_utf16;
  16. using std::codecvt_utf8_utf16;
  17. #ifndef BOOST_NO_CXX11_CHAR16_T
  18. std::wstring_convert<std::codecvt_utf8<char16_t>, char16_t> test;
  19. #endif
  20. return 0;
  21. }
  22. }