$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [lexical_cast] How is the degenerate case handled?
From: Max (more4less_at_[hidden])
Date: 2009-04-15 20:14:27
Good point.
I hope the answer is:
- short circuited;
- type need not to be streamable.
B/Rgds
Max
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Robert Jones
Sent: Wednesday, April 15, 2009 8:28 PM
To: boost-users_at_[hidden]
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.