From: Oleg Abrosimov (beholder_at_[hidden])
Date: 2006-08-05 06:29:13


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:

#include <iostream>
#include <string>
#include <locale>
#include <iomanip>

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;
}

Note that it compiles perfectly with Comeau online.
Can someone elaborate on it please?

Best,
Oleg Abrosimov.