Files

28 lines
717 B
C++
Raw Permalink Normal View History

// (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.
// MACRO: BOOST_NO_CXX11_RAW_LITERALS
// TITLE: C++0x raw string literals unavailable
// DESCRIPTION: The compiler does not support C++0x raw string literals
namespace boost_no_cxx11_raw_literals {
2011-12-23 17:17:31 +00:00
void quiet_warning(const char*){}
void quiet_warning(const wchar_t*){}
int test()
{
2010-06-02 14:30:04 +00:00
const char* s = R"(abc)";
2011-12-23 17:17:31 +00:00
quiet_warning(s);
2010-06-02 14:30:04 +00:00
const wchar_t* ws = LR"(abc)";
2011-12-23 17:17:31 +00:00
quiet_warning(ws);
return 0;
}
}