|
Boost : |
From: Chris Garrett (cgarrett_at_[hidden])
Date: 2004-03-29 10:15:08
Excellent thanks very much!
Chris
Jonathan Turkanis wrote:
> "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
>
>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>
>
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk