#6127 closed Bugs (fixed)
lexical_cast in 1.48.0 broken for use on Android platform (wchar_t)
Reported by: | Owned by: | Antony Polukhin | |
---|---|---|---|
Milestone: | To Be Determined | Component: | lexical_cast |
Version: | Boost 1.48.0 | Severity: | Problem |
Keywords: | lexical_cast wchar_t android | Cc: |
Description
Due to the use of wchar_t in lines 651-652 in boost/lexical_cast.hpp, compilation of translation units using the Android NDK (tested: r7) fail, since wchar_t on Android is not supported.
The following change fixes the compile errors, although I did not check for correctness.
651: const wchar_t minus = lcast_char_constants<wchar_t>::minus;
652: const wchar_t plus = lcast_char_constants<wchar_t>::plus;
->
651: const CharT minus = lcast_char_constants<CharT>::minus;
652: const CharT plus = lcast_char_constants<CharT>::plus;
Change History (4)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:4 by , 11 years ago
Great thanks!
Fixed in trunk version. As soon as fix cycles through a regression tests it will be merged to release branch.
This patch seems to fix my problem as well (for compiling on Android, as well as OSX and iOS)