This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12068] Template class definition generates error
- From: "menita dot singh at schwab dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Aug 2003 17:49:54 -0000
- Subject: [Bug c++/12068] Template class definition generates error
- References: <20030826151157.12068.menita.singh@schwab.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12068
------- Additional Comments From menita dot singh at schwab dot com 2003-08-26 17:49 -------
template<class ValueType = Object> class ArrayListImpl : public
List<ValueType>::Impl {
private: class Itr;
private: Array<ValueType> elemData;
private: _index numElems;
protected: static _index DEFAULT_CAPACITY; //LINUX
public: ArrayListImpl( _index pInitialCapacity =DEFAULT_CAPACITY );
public: ArrayListImpl( const ArrayListImpl& pAnother );
public: ArrayListImpl& operator =( const ArrayListImpl& pAnother );
friend class Itr;
};
/******************I GET AN ERROR IN THE FOLLOWING LINE#: *****/
template<class ValueType> class ArrayListImpl<ValueType>::Itr : public
Iterator<ValueType> {
private: class Impl : public Iterator<ValueType>::Impl {
protected: ArrayListImpl<ValueType>& base;
private: index cursor;
private: int lastRet;
private: boolean canRemove;
protected: Impl( ArrayListImpl<ValueType>& pBase );
protected: Impl( const ArrayListImpl<ValueType>& pBase );
protected: Impl( const Impl& pAnother );
protected: ~Impl();
private: Impl& operator =( const Impl& pAnother );
friend class Itr;
};
public: Itr( Impl* pImpl );
};