
On May 27, 2004, at 3:20 AM, Vladimir Prus wrote:
I get the following error from metrowerks:
It seems that given:
template<> bool basic_config_file_iterator<wchar_t>::getline(std::string& s);
template<class charT> bool basic_config_file_iterator<charT>::getline(std::string& s) { return std::getline(*is, s); }
Metrowerks decides to use the second, unspecialized version, even for basic_config_file_iterator<wchar_t>, and this surely fails to compile.
Anybody knows what could be the reason? The entire header which causes the error can be found at:
I've sent a reduced test case to the Metrowerks front end engineer. In the meantime I can think of two workarounds: 1. Specialize the entire basic_config_file_iterator class on wchar_t. or 2. Provide an inlined definition for the specialized member in the header. -Howard