• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//  (C) Copyright John Maddock 2001.
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
6//  See http://www.boost.org/libs/config for the most recent version.
7
8//  MACRO:         BOOST_NO_STD_LOCALE
9//  TITLE:         std::locale
10//  DESCRIPTION:   The standard library lacks std::locale.
11
12#include <locale>
13
14namespace boost_no_std_locale{
15
16int test()
17{
18   std::locale l1;
19   //
20   // ideally we would construct a locale from a facet,
21   // but that requires template member functions which
22   // may not be available, instead just check that we can
23   // construct a pointer to a facet:
24   //
25   const std::ctype<char>* pct = 0;
26   (void) &l1;
27   (void) &pct;
28   return 0;
29}
30
31}
32
33
34
35
36
37