Modify

Opened 10 years ago

Closed 8 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

Attachments (0)

Change History (10)

comment:1 Changed 10 years ago by anonymous

fix

#include <locale>

where that line located it need to be replaced to

#ifndef BOOST_NO_STRINGSTREAM #include <locale> #endif

comment:2 Changed 10 years ago by anonymous

((( sorry for broken fix

#ifndef BOOST_NO_STD_LOCALE

#include <locale>

#endif

comment:3 Changed 10 years ago by Marshall Clow

Component: Nonelexical_cast
Owner: set to nasonov

comment:4 Changed 10 years ago by nasonov

Resolution: fixed
Status: newclosed

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

comment:5 Changed 10 years ago by DmitryYakimov

Resolution: fixed
Status: closedreopened

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

comment:6 Changed 10 years ago by anonymous

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 Changed 10 years ago by anonymous

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 Changed 9 years ago by (none)

Milestone: Boost 1.35.1

Milestone Boost 1.35.1 deleted

comment:9 in reply to:  5 Changed 8 years ago by nasonov

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 Changed 8 years ago by nasonov

Resolution: fixed
Status: reopenedclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain nasonov.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.