2 // (C) Copyright Beman Dawes 2008
4 // Use, modification and distribution are subject to the
5 // Boost Software License, Version 1.0. (See accompanying file
6 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 // See http://www.boost.org/libs/config for more information.
10 // MACRO: BOOST_NO_CXX11_CHAR16_T
11 // TITLE: C++0x char16_t unavailable
12 // DESCRIPTION: The compiler does not support C++0x char16_t
14 namespace boost_no_cxx11_char16_t {
16 // Microsoft VC++ 2010, and possibly other compilers, provides
17 // a typedef for char16_t rather than a new type. We want that
18 // to be an error, so provide an overloaded function that will
19 // be ambiguous if char16_t is just a typedef.
20 void f(const char16_t*){}
21 void f(const unsigned short*){}
22 void f(const unsigned int*){}
23 void f(const unsigned long*){}