Files
config/test/boost_no_cxx11_hdr_codecvt.ipp

30 lines
798 B
Plaintext
Raw Permalink Normal View History

2009-05-30 11:22:59 +00:00
// (C) Copyright Beman Dawes 2009
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/config for more information.
// MACRO: BOOST_NO_CXX11_HDR_CODECVT
2009-05-30 11:22:59 +00:00
// TITLE: C++0x header <codecvt> unavailable
// DESCRIPTION: The standard library does not supply C++0x header <codecvt>
#include <codecvt>
2015-08-04 12:44:49 +01:00
#include <locale> // for wstring_convert
2009-05-30 11:22:59 +00:00
namespace boost_no_cxx11_hdr_codecvt {
2009-05-30 11:22:59 +00:00
int test()
{
using std::codecvt_utf8;
using std::codecvt_utf16;
using std::codecvt_utf8_utf16;
#ifndef BOOST_NO_CXX11_CHAR16_T
std::wstring_convert<std::codecvt_utf8<char16_t>, char16_t> test;
#endif
2009-05-30 11:22:59 +00:00
return 0;
}
}