Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2004-03-28 03:39:08


"Chris Garrett" <cgarrett_at_[hidden]> wrote in message
news:4065D5E8.8000200_at_degarrah.com...
> Hi,
>
> I have a simple collection template that uses boost::shared_ptr and
> std::list. I have used this with Borland Builder 5/6 for sometime
now
> with no problems. I am moving some code that uses the template to
> GCC(3.2.3) and have found that this is giving me some depreciation
> warnings.
>
> A snip of my template(coll.h):
>
> template <class T> class Collection
> {
> private:
> list < shared_ptr<T> > items;
> list < shared_ptr<T> >::iterator iter;

you need 'typename' before 'list < shared_ptr<T> >::iterator' here.

> ...
> };
>

Also, it's 'deprecated', not 'depreciated' :-)

Jonathan


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