
28 Sep
2004
28 Sep
'04
1:05 p.m.
Maxim Yegorushkin wrote:
In generic code lexical_cast<> is sometimes used as a cast to the same type. I would like to shortcut this rather then going all the way by writing it to a stream and reading back.
Do you mean you sometimes use lexical_cast to cast between two types, neither of which is std::string? Could you tell why it's usefull -- it's very interesting since I never needed that myself. Wouldn't some more direct cast be more appropriate in that case? - Volodya