Modify

Opened 6 years ago

Closed 6 years ago

#6290 closed Patches (fixed)

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:

Description

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.

Attachments (1)

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

Download all attachments as: .zip

Change History (3)

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

comment:1 Changed 6 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 6 years ago by Antony Polukhin

Resolution: fixed
Status: newclosed

(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

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.