------- Additional Comments From schwab at suse dot de 2004-12-13 17:01 ------- Try this instead (too much deletia). template<class T> class PLCFIterator; template<class T> class PLCF { friend class PLCFIterator<T>; public: PLCFIterator<T> at( unsigned int index ) const; }; template<class T> class PLCFIterator { friend PLCFIterator<T> PLCF<T>::at( unsigned int ) const; public: PLCFIterator( const PLCF<T>& plcf ); }; void Position(const PLCF<int> &plcf) { PLCFIterator<int> it(plcf); }
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18957