12 May
2010
12 May
'10
7:01 p.m.
On Wed, May 12, 2010 at 11:29 AM, John Dlugosz
to_stringstd::wstring(x); specifies the return type (which can default to std::string) and is defined in the same namespace as C.
If you called it lexical_cast instead, are you saying that would not play nicely with the existing lexical_cast definitions?
Providing a function template parameter explicitly will disable ADL. To call lexical_cast<foo>(), you need to either qualify the call with the namespace name (so... is the foo overload of lexical_cast in the boost namespace or in foo's namespace?) or use using to bring a bunch of lexical_cast overloads in scope. Either way, it sucks. Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode