[Bug c++/12068] Template class definition generates error
menita dot singh at schwab dot com
gcc-bugzilla@gcc.gnu.org
Tue Aug 26 17:49:00 GMT 2003
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 );
};
More information about the Gcc-bugs
mailing list