Ticket #6290 (closed Patches: fixed)

Opened 5 years ago

Last modified 5 years ago

Fix Lexical Cast 64bit Warning

Reported by: Matthew Bradbury <matt-bradbury@…> Owned by: nasonov
Milestone: To Be Determined Component: lexical_cast
Version: Boost Development Trunk Severity: Cosmetic
Keywords: Cc:


In Lexical Cast a std::string::size_type is assigned to an unsigned int. This patch changes the unsigned int to also be a std::string::size_type, getting rid of the warning on MSVC11.


lexical_cast-fix-64-bit-warning.patch (639 bytes) - added by Matthew Bradbury <matt-bradbury@…> 5 years ago.

Change History

Changed 5 years ago by Matthew Bradbury <matt-bradbury@…>

comment:1 Changed 5 years ago by albert.santoni@…

Nice, beat me to it by 3 days. :)

We just stumbled across the same warning and the same fix, so it looks OK to me FWIW.

I believe the patch you've attached will also fix a size_t/unsigned int comparison warning in the case that BOOST_LEXICAL_CAST_ASSUME_C_LOCALE is not defined on 64-bit systems as well.

comment:2 Changed 5 years ago by apolukhin

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

(In [76154]) Fixes #6290 Tiny documentation update Updated char16_t and char32_t support (still some work required) lexical_cast_empty_input_test.cpp refactored


Add a comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.