
28 Mar
2004
28 Mar
'04
8:39 a.m.
"Chris Garrett" <cgarrett@degarrah.com> wrote in message news:4065D5E8.8000200@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