[cfe-commits] r43277 - /cfe/trunk/include/clang/Basic/IdentifierTable.h

Neil Booth neil at daikokuya.co.uk
Wed Oct 24 07:38:42 PDT 2007


Ted Kremenek wrote:-

> 
> On Oct 23, 2007, at 5:15 PM, Hartmut Kaiser wrote:
> 
> > Ted,
> >
> >>> +  friend struct llvm::SerializeTrait<IdentifierTable>;
> >>
> >> Cute.  I'll be sure to use "struct" in the future instead of "class"
> >> in friend declarations.
> >
> > It's not that you need to use structs in friend declarations. The  
> > problem
> > was, that you were using 'struct' and 'class' inconsistently for
> > llvm::SerializeTrait.
> >
> > Regards Hartmut
> 
> Ahh.  I see.  Do you know if this consistency is required by the  
> standard?  i.e., is gcc being too loose, or VC++ too strict?

Pretty sure they cannot be interchanged.

Neil.



More information about the cfe-commits mailing list