• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//  (C) Copyright Beman Dawes 2008
2
3//  Use, modification and distribution are subject to the
4//  Boost Software License, Version 1.0. (See accompanying file
5//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6
7//  See http://www.boost.org/libs/config for more information.
8
9//  MACRO:         BOOST_NO_CXX11_RAW_LITERALS
10//  TITLE:         C++0x raw string literals unavailable
11//  DESCRIPTION:   The compiler does not support C++0x raw string literals
12
13namespace boost_no_cxx11_raw_literals {
14
15void quiet_warning(const char*){}
16void quiet_warning(const wchar_t*){}
17
18int test()
19{
20  const char* s = R"(abc)";
21  quiet_warning(s);
22  const wchar_t* ws = LR"(abc)";
23  quiet_warning(ws);
24  return 0;
25}
26
27}
28