Modify

Ticket #6127 (closed Bugs: fixed)

Opened 2 years ago

Last modified 2 years ago

lexical_cast in 1.48.0 broken for use on Android platform (wchar_t)

Reported by: michael-hofmann@… Owned by: apolukhin
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;

Attachments

Change History

comment:1 Changed 2 years ago by anonymous

This patch seems to fix my problem as well (for compiling on Android, as well as OSX and iOS)

comment:2 Changed 2 years ago by apolukhin

  • Owner changed from nasonov to apolukhin
  • Status changed from new to assigned

comment:3 Changed 2 years ago by apolukhin

  • Status changed from assigned to closed
  • Resolution set to fixed

(In [75813]) Fixes #6127 (wchar_t usage outside of #ifndef BOOST_LCAST_NO_WCHAR_T )

comment:4 Changed 2 years ago by apolukhin

Great thanks!
Fixed in trunk version. As soon as fix cycles through a regression tests it will be merged to release branch.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.