On 24 Apr 2000, Masaharu Goto wrote:
> The 'template<>' thing is compiler version dependent. Current
> rootcint/makecint causes warning for new compiler, but if we add
> 'template<>', we will have error in the old compiler. I think we
> should keep this behavior until all of supported compiler handles
> 'template<>'.
Hello,
the term `compiler version dependent' seems a little bit misleading. It is
enforced by the C++ standard. My IRIX CC compiler generates an error if it
is missing. And the hack up do now is this (transforms tmpdict.C into
dict.C):
gawk '/(void |const char \*).*<.*>\:\:.*\(.*\)/ { print "template <>";
}{print $0; }' tmpdict.C >dict.C
Which compiler issues an error for the `template<>'?
Another question: I am curious whether rootcint understands namespaces and
creates the correct operator>> etc. Are special versions of ClassImp and
ClassDef needed?
Best regards
Christoph
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:24 MET