// // Copyright (c) 2009-2011 Artyom Beilis (Tonkikh) // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // #define BOOST_LOCALE_SOURCE #include #include #include #include #include #include namespace boost { namespace locale { std::locale::id info::id; std::locale::id calendar_facet::id; std::locale::id converter::id; std::locale::id base_message_format::id; std::locale::id converter::id; std::locale::id base_message_format::id; #ifdef BOOST_LOCALE_ENABLE_CHAR16_T std::locale::id converter::id; std::locale::id base_message_format::id; #endif #ifdef BOOST_LOCALE_ENABLE_CHAR32_T std::locale::id converter::id; std::locale::id base_message_format::id; #endif namespace boundary { std::locale::id boundary_indexing::id; std::locale::id boundary_indexing::id; #ifdef BOOST_LOCALE_ENABLE_CHAR16_T std::locale::id boundary_indexing::id; #endif #ifdef BOOST_LOCALE_ENABLE_CHAR32_T std::locale::id boundary_indexing::id; #endif } namespace { struct install_all { install_all() { std::locale l = std::locale::classic(); install_by(); install_by(); #ifdef BOOST_LOCALE_ENABLE_CHAR16_T install_by(); #endif #ifdef BOOST_LOCALE_ENABLE_CHAR32_T install_by(); #endif std::has_facet(l); std::has_facet(l); } template void install_by() { std::locale l = std::locale::classic(); std::has_facet >(l); std::has_facet >(l); std::has_facet >(l); } } installer; } } } // vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4