Changeset 45201


Ignore:
Timestamp:
May 7, 2008, 7:43:55 PM (10 years ago)
Author:
nasonov
Message:

Fixes #1847 Can't compile without <locale> header, boost::lexical_cast problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/boost/lexical_cast.hpp

    r44474 r45201  
    1818#include <cstddef>
    1919#include <istream>
    20 #include <locale>
    2120#include <string>
    2221#include <typeinfo>
     
    3029#include <boost/static_assert.hpp>
    3130#include <boost/detail/lcast_precision.hpp>
     31
     32#ifndef BOOST_NO_STD_LOCALE
     33#include <locale>
     34#endif
    3235
    3336#ifdef BOOST_NO_STRINGSTREAM
     
    486489
    487490#ifndef BOOST_LEXICAL_CAST_ASSUME_C_LOCALE
     491            // TODO: use BOOST_NO_STD_LOCALE
    488492            std::locale loc;
    489493            typedef std::numpunct<CharT> numpunct;
     
    652656            static void widen_and_assign(wchar_t* p, char ch)
    653657            {
     658                // TODO: use BOOST_NO_STD_LOCALE
    654659                std::locale loc;
    655660                wchar_t w = BOOST_USE_FACET(std::ctype<wchar_t>, loc).widen(ch);
Note: See TracChangeset for help on using the changeset viewer.