Why does lexical_cast make a copy?
I noticed that the function declaration of lexical_cast is:
template
--- "Daniel T."
I noticed that the function declaration of lexical_cast is:
template
Target lexical_cast(Source arg) Namely that arg is a copy of the original source. Is there a specific reason that a copy is made? Why isn't it a 'const Source&' instead?
I'll make a guess that it has to do with the double reference problem. ie: the type of Source can be a reference, so const Source& would be a double reference... Am I right? Johan __________________________________________________ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards� http://movies.yahoo.com/
participants (2)
-
Daniel T.
-
Johan Ericsson