Creating myclass::iterator type?
From: John Smith (john.smith_at_x-formation.com)
Date: 09/08/04
- Next message: HLSL fan: "Re: what's the .net replacement for ios::nocreate"
- Previous message: Auronc: "How to simulate 8bytes double???"
- Next in thread: John Harrison: "Re: Creating myclass::iterator type?"
- Reply: John Harrison: "Re: Creating myclass::iterator type?"
- Reply: Unforgiven: "Re: Creating myclass::iterator type?"
- Reply: John Smith: "Re: Creating myclass::iterator type?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 8 Sep 2004 15:46:29 +0200
Hey
I have some code which I've been using on Microsoft VC++ for some time. Now
I wanted to port my application to Mac OS X which offers gcc and the build
fails.
Here is the troublesome code:
template<class T>
class CList
{
public:
typedef vector<T>::iterator iterator;
...
};
As you can see I want to use vector iterator and make it become an iterator
type for my class so I can use CList::iterator.
Gcc however says the following:
../shared/list.h:47: warning: `std::vector<OLYLXQHQSPOQSPX,
std::allocator<_CharT> >::iterator' is implicitly a typename
../shared/list.h:47: warning: implicit typename is deprecated, please
see the documentation for details
I wonder why this is deprecated? Does this mean it's not legal C++ ?
Thanks in advance.
-- John
- Next message: HLSL fan: "Re: what's the .net replacement for ios::nocreate"
- Previous message: Auronc: "How to simulate 8bytes double???"
- Next in thread: John Harrison: "Re: Creating myclass::iterator type?"
- Reply: John Harrison: "Re: Creating myclass::iterator type?"
- Reply: Unforgiven: "Re: Creating myclass::iterator type?"
- Reply: John Smith: "Re: Creating myclass::iterator type?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|