boost_no_raw_literals.ipp 717 B

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