Opened 15 years ago

Closed 13 years ago

#1847 closed Bugs (fixed)

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

Reported by: amorph.dev@… Owned by: nasonov
Milestone: Boost 1.41.0 Component: lexical_cast
Version: Boost 1.35.0 Severity: Problem
Keywords: lexical_cast locale Cc:

Description

I'm using boost for WinCE development. I have problem, when I #include<boost/lexical_cast.hpp> it's include <locale> header that missing on MS STL realisation for WinCE

It's error occures even I define derectives for non using locale

Change History (10)

comment:1 by anonymous, 15 years ago

fix

#include <locale>

where that line located it need to be replaced to

#ifndef BOOST_NO_STRINGSTREAM #include <locale> #endif

comment:2 by anonymous, 15 years ago

((( sorry for broken fix

#ifndef BOOST_NO_STD_LOCALE

#include <locale>

#endif

comment:3 by Marshall Clow, 15 years ago

Component: Nonelexical_cast
Owner: set to nasonov

comment:4 by nasonov, 14 years ago

Resolution: fixed
Status: newclosed

(In [45201]) Fixes #1847 Can't compile without <locale> header, boost::lexical_cast problem

comment:5 by DmitryYakimov, 14 years ago

Resolution: fixed
Status: closedreopened

Then we should define BOOST_NO_STD_LOCALE in config files for windows mobile as well.

comment:6 by anonymous, 14 years ago

And we should remove defined(BOOST_NO_STD_LOCALE) ):

#if defined(BOOST_NO_STRINGSTREAM)
defined(BOOST_NO_STD_WSTRING)

#define DISABLE_WIDE_CHAR_SUPPORT #endif

in the beginning of lexical_cast.hpp

comment:7 by anonymous, 14 years ago

Sorry, missed formatting:

#if defined(BOOST_NO_STRINGSTREAM) || \
    defined(BOOST_NO_STD_WSTRING)
#define DISABLE_WIDE_CHAR_SUPPORT
#endif

in the beginning of lexical_cast.hpp

comment:8 by (none), 14 years ago

Milestone: Boost 1.35.1

Milestone Boost 1.35.1 deleted

in reply to:  5 comment:9 by nasonov, 13 years ago

Milestone: Boost 1.41.0

Replying to DmitryYakimov:

Then we should define BOOST_NO_STD_LOCALE in config files for windows mobile as well.

If it's still not defined for windows mobile, you should submit a bug for the "config" component. I'm closing this bug.

comment:10 by nasonov, 13 years ago

Resolution: fixed
Status: reopenedclosed

(In [56160]) Fix #1847 (Can't compile without <locale> header, boost::lexical_cast problem).

Note: See TracTickets for help on using tickets.