Boost logo

Boost Users :

Subject: [Boost-users] [lexical_cast] How is the degenerate case handled?
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2009-04-15 08:28:10


If you use lexical_cast to cast between identical types,

eg. lexical_cast< int >( 4 );

does it go through all the machinery of streaming out and back, or
does it short circuit? In those circumstances, does the type need
to be streamable?

Thanks, Rob.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net