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_STLP_USE_FACET 9// TITLE: STLport version of use_facet 10// DESCRIPTION: The standard library lacks a conforming std::use_facet, 11// but has a workaound class-version that does the job. 12// This is primarily for the STLport std lib. 13 14#include <locale> 15 16 17namespace boost_has_stlp_use_facet{ 18 19int test() 20{ 21 std::locale l; 22 const std::ctype<char>& ct = *std::_Use_facet<std::ctype<char> >(l); 23 return 0; 24} 25 26} 27 28 29 30 31 32