Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-05-31 00:44:01


Daryle Walker wrote:
> On 5/27/04 3:20 AM, "Vladimir Prus" <ghost_at_[hidden]> wrote:
> > I get the following error from metrowerks:
> >
> > http://tinyurl.com/2z6st
>
> 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


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