Boost logo

Boost :

From: Howard Hinnant (hinnant_at_[hidden])
Date: 2004-05-27 08:33:00


On May 27, 2004, at 3:20 AM, Vladimir Prus wrote:

>
> I get the following error from metrowerks:
>
> http://tinyurl.com/2z6st
>
> 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:
>
> http://tinyurl.com/2rapj

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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk