Andre Poenitz wrote: > It is not legal to instantiate a template on an incomplete type, > i.e. this > > #ifndef PARAGRAPH_LIST_FWD_H > #define PARAGRAPH_LIST_FWD_H > > #include <list> > #include <utility> > > class Paragraph; > > typedef std::list<Paragraph> ParagraphList; > > typedef std::pair<ParagraphList::iterator, int> PitPosPair; > > #endif > > is bad. > > Andre'
And where, exactly, is the instantiation? I see none... Moreover, you'll find that any place ParagraphList is actually instantiated (in the .C files) there is a #include "paragraph.h" as well as a #include "ParagraphList_fwd.h". -- Angus