• 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 most recent version.
7
8//  MACRO:         BOOST_HAS_MACRO_USE_FACET
9//  TITLE:         macro version of use_facet: _USE
10//  DESCRIPTION:   The standard library lacks a conforming std::use_facet,
11//                 but has a macro _USE(loc, Type) that does the job.
12//                 This is primarily for the Dinkumware std lib.
13
14#include <locale>
15
16#ifndef _USE
17#error "macro _USE not defined"
18#endif
19
20namespace boost_has_macro_use_facet{
21
22int test()
23{
24   std::locale l;
25   const std::ctype<char>& ct = std::_USE(l, std::ctype<char>);
26   return 0;
27}
28
29}
30
31
32
33
34
35
36