
Daryle Walker wrote:
On 5/27/04 3:20 AM, "Vladimir Prus" <ghost@cs.msu.su> wrote:
I get the following error from metrowerks:
Unless you already altered the files, this error and the problem below don't look related.
I've altered the files already.
For this error, are you sure you #included <string>? Or maybe the previous line/statement wasn't ended correctly.
Yes, I think something like this is the cause for the new error.
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); }
Is the first version supposed to mean anything?
Well, yes.
Are you allowed to "specialize" a specific class member function _instead_ of specializing the entire class? (i.e. Make a new basic_config_file_iterator<wchar_t> class specialization instead of just one method.)
Yes, the standard allows it, and a number of compilers (gcc, vc7.1, comeau) have no problems with it. - Volodya