utf8_codecvt_facet.hpp 923 B

12345678910111213141516171819202122232425262728
  1. // Copyright (c) 2001 Ronald Garcia, Indiana University (garcia@osl.iu.edu)
  2. // Andrew Lumsdaine, Indiana University (lums@osl.iu.edu).
  3. // Distributed under the Boost Software License, Version 1.0. (See
  4. // accompanying file LICENSE_1_0.txt or copy at
  5. // http://www.boost.org/LICENSE_1_0.txt)
  6. #ifndef BOOST_ARCHIVE_DETAIL_UTF8_CODECVT_FACET_HPP
  7. #define BOOST_ARCHIVE_DETAIL_UTF8_CODECVT_FACET_HPP
  8. #include <boost/config.hpp>
  9. #ifdef BOOST_NO_STD_WSTREAMBUF
  10. #error "wide char i/o not supported on this platform"
  11. #endif
  12. // use boost's utf8 codecvt facet
  13. #include <boost/archive/detail/decl.hpp>
  14. #define BOOST_UTF8_BEGIN_NAMESPACE \
  15. namespace boost { namespace archive { namespace detail {
  16. #define BOOST_UTF8_END_NAMESPACE }}}
  17. #include <boost/detail/utf8_codecvt_facet.hpp>
  18. #undef BOOST_UTF8_END_NAMESPACE
  19. #undef BOOST_UTF8_DECL
  20. #undef BOOST_UTF8_BEGIN_NAMESPACE
  21. #endif // BOOST_ARCHIVE_DETAIL_UTF8_CODECVT_FACET_HPP