Good point.
I hope the answer is:
- short circuited;
- type need not to be streamable.
B/Rgds
Max
From:
boost-users-bounces@lists.boost.org
[mailto:boost-users-bounces@lists.boost.org] On Behalf Of Robert Jones
Sent: Wednesday, April 15, 2009 8:28 PM
To: boost-users@lists.boost.org
Subject: [Boost-users] [lexical_cast] How is the degenerate case
handled?
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.