1 May
2004
1 May
'04
4:34 a.m.
Miro Jurisic
In article
, "DY, JERRY U (SBCSI)" wrote: string s2 = lexical_cast<string>((int)c) // s2 = "65"
I would have written int(c) instead of (int)c because compilers perform more useful checking on the constructor than they do on the cast, but that's all.
The two forms are equivalent. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com