Andre Poenitz wrote:
> And where, exactly, is the instantiation?
> 
> Good point.
> 
> I have a bad feeling nevertheless, but I'll go ask the gurus as I
> don't find something explicitly forbidding it.
> 
>> 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".
> 
> But it doesn't work with 'class Paragraph;' removed. So this means
> usage is something like
> 
>  #include <list>
>  
>  class Paragraph;
> 
>  typedef std::list<Paragraph> ParagraphList;
>  
>  class Paragraph {
>  ...
>  };
> 
> 
> Well, I go and ask.
> 
> Andre'

Good'o. Note that none of our compilers (including DEC cxx and g++ 
3.4) have a problem with this and compilers are getting pretty 
standard compliant nowadays.


-- 
Angus

Reply via email to