2009-02-27 13:23:06 +00:00
|
|
|
// (C) Copyright Beman Dawes 2008
|
|
|
|
|
|
|
|
|
|
// 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.
|
|
|
|
|
|
2012-07-10 13:57:24 +00:00
|
|
|
// MACRO: BOOST_NO_CXX11_UNICODE_LITERALS
|
2009-02-27 13:23:06 +00:00
|
|
|
// TITLE: C++0x unicode literals unavailable
|
2009-10-11 17:19:53 +00:00
|
|
|
// DESCRIPTION: The compiler does not support C++0x Unicode literals (N2442)
|
2009-02-27 13:23:06 +00:00
|
|
|
|
2012-07-10 19:10:08 +00:00
|
|
|
namespace boost_no_cxx11_unicode_literals {
|
2009-02-27 13:23:06 +00:00
|
|
|
|
2011-10-31 11:21:10 +00:00
|
|
|
void quiet_warning(const char*){}
|
2009-10-11 17:19:53 +00:00
|
|
|
|
2009-02-27 13:23:06 +00:00
|
|
|
int test()
|
|
|
|
|
{
|
2009-10-11 17:19:53 +00:00
|
|
|
const char* c8 = u8"";
|
2011-11-27 16:19:55 +00:00
|
|
|
const char16_t* c16 = u"";
|
|
|
|
|
const char32_t* c32 = U"";
|
2011-10-31 11:21:10 +00:00
|
|
|
quiet_warning(c8);
|
2009-02-27 13:23:06 +00:00
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|