Modify

Ticket #6264 (closed Bugs: fixed)

Opened 2 years ago

Last modified 2 years ago

LexicalCast no longer works properly under some conditions

Reported by: Akim Demaille <akim.demaille@…> Owned by: apolukhin
Milestone: To Be Determined Component: lexical_cast
Version: Boost 1.48.0 Severity: Regression
Keywords: Cc: braden@…

Description

The following program is a stripped down version of something that used to work properly with the previous versions of Boost. I failed to make it smaller. I'm using G++ 4.2, but, fwiw, clang++ gives the same result.

The output is:

FAIL: bad lexical cast: source type value could not be interpreted as target

With non-empty strings to "escape" (in the real situation, of course Escape does something useful), it works properly.

Attachments

lexical-test.cc Download (515 bytes) - added by Akim Demaille <akim.demaille@…> 2 years ago.
Test case

Change History

Changed 2 years ago by Akim Demaille <akim.demaille@…>

Test case

comment:1 Changed 2 years ago by Braden McDaniel <braden@…>

  • Cc braden@… added

comment:2 Changed 2 years ago by 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 [76096]) Fixes #6298 Fixes #6264

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.