Modify

Ticket #6290 (closed Patches: fixed)

Opened 2 years ago

Last modified 2 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:

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

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

Change History

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

comment:1 Changed 2 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 2 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

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.