Sorry,
 
But I don't understand.
arg and copy_of_arg are of "Source" type (string in that case).
These are not "pointer" ?#!
 
The syntax if( *arg != *copy_of_arg ) is rejected (normaly for me) by my compiler ?
 
Can you please explain more and/or give a solution.
 
NB : some other people seems to work on a new version of lexical_cast :
Terje Sletteb, Gennadiy Rozenthal, ...
I'm not at the level of these guys...  I'm play with STL since 1 month only.  So excuse me.
 
Thank.
<Bjorn.Karlsson@readsoft.com> wrote in message news:E6EE2E266803D5118EF400A024A66C310126D66A@CHEWIE...

From: Stéphane Bronsart [mailto:stephane.bronsart@bea.be]
> z = lexical_cast<short>("1000"); // throw 3 (Why ? if example above don't throw ?)
> Under dbg, the copy_of_arg and arg are show the same, but the test if( copy_of_arg != arg ) fail
> !!!  Why ?

Because you're not comparing strings, like in the example above. You're comparing (different) pointers, not values.

Bjorn