Opened 15 years ago
Closed 13 years ago
#1847 closed Bugs (fixed)
Can't compile without <locale> header, boost::lexical_cast problem
Reported by: | 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 , 15 years ago
comment:2 by , 15 years ago
((( sorry for broken fix
#ifndef BOOST_NO_STD_LOCALE
#include <locale>
#endif
comment:3 by , 15 years ago
Component: | None → lexical_cast |
---|---|
Owner: | set to |
comment:4 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
follow-up: 9 comment:5 by , 14 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Then we should define BOOST_NO_STD_LOCALE in config files for windows mobile as well.
comment:6 by , 14 years ago
And we should remove defined(BOOST_NO_STD_LOCALE) ):
defined(BOOST_NO_STD_WSTRING)
#define DISABLE_WIDE_CHAR_SUPPORT #endif
in the beginning of lexical_cast.hpp
comment:7 by , 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:9 by , 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 , 13 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
fix
#include <locale>
where that line located it need to be replaced to
#ifndef BOOST_NO_STRINGSTREAM #include <locale> #endif