
5 Aug
2006
5 Aug
'06
12:03 p.m.
On Sat, 05 Aug 2006 17:29:13 +0700, Oleg Abrosimov <beholder@gorodok.net> wrote:
Hello, during my work on string_cvt proposal I've faced a problem with MSVC 7.1 compiler on WinXP machine. The following code does not compile:
[...]
template <typename T, typename TCont, typename TManip, typename TDef> inline T foo(TCont const& src, TManip const& manip_, std::locale const& loc, TDef const& def) { return T(); }
int main() { int k = foo<int>(std::string("123"), std::hex, std::locale(), 1); return 0; }
Did you try writing "&std::hex"? -- [ Gennaro Prota, C++ developer for hire ]