Opened 20 years ago

Closed 17 years ago

#113 closed Bugs (Fixed)

boost::lexical_cast<char>(' ')

Reported by: redcube Owned by: kevlin
Milestone: Component: None
Version: None Severity:
Keywords: Cc:

Description

the following code throws an exception:       
       
boost::lexical_cast<char>(' ');       
    
but the correct behavior should be that it does not throw an      
exception.      
      
The error is caused by skipping all whitespace of the argument. In my      
opinion this is never needed and just a bug.      
      
I've added a small patch to boost/lexical_cast.hpp (v1.3) which fixes 
this.  

Change History (1)

comment:1 by kevlin, 17 years ago

Status: assignedclosed
Logged In: YES 
user_id=32864

Defect fixed.
Note: See TracTickets for help on using tickets.