Number of the types/classes in the definition of templated class


Please read tips for efficient and successful posting and posting code

Please fill also the fields below. Note that root -b -q will tell you this info, and starting from 6.28/06 upwards, you can call .forum bug from the ROOT prompt to pre-populate a topic.

ROOT Version: 6.36.02
Platform: Mac OS 15.6.1
Compiler: Apple clang version 17.0.0 (clang-1700.0.13.5)


Hello

I am developing a base class that provides lots of resources to its derivative. I am trying to make if as versatile as possible by making it templated. The class template has 8 parameters. Is that too many? I get the following from cling… The C++ documentation I find on the web suggests the language C++ does not set limits. Perhaps the CLANG compiler does? How about “cling”?

Generating G__Particles.cxx, libParticles_rdict.pcm, libParticles.rootmap

<<< cling interactive line includer >>>:1:1: error: expected expression

^

<<< cling interactive line includer >>>:1:1: error: expected expression

<<< cling interactive line includer >>>:1:1: error: expected expression

<<< cling interactive line includer >>>:1:1: error: expected expression

<<< cling interactive line includer >>>:1:1: error: expected expression

<<< cling interactive line includer >>>:1:1: error: expected expression

<<< cling interactive line includer >>>:1:1: error: expected expression

<<< cling interactive line includer >>>:1:1: error: expected expression

<<< cling interactive line includer >>>:1:1: error: expected expression

<<< cling interactive line includer >>>:1:1: error: expected expression

<<< cling interactive line includer >>>:1:1: error: expected expression

<<< cling interactive line includer >>>:1:1: error: expected expression

<<< cling interactive line includer >>>:1:1: error: expected expression

<<< cling interactive line includer >>>:1:1: error: expected expression

<<< cling interactive line includer >>>:1:1: error: expected expression

<<< cling interactive line includer >>>:1:1: error: expected expression

<<< cling interactive line includer >>>:1:1: error: expected expression

<<< cling interactive line includer >>>:1:1: error: expected expression

<<< cling interactive line includer >>>:1:1: error: expected expression

fatal error: too many errors emitted, stopping now [-ferror-limit=]

As always, thanks for your help!

Claude

There should not be any limits. The error above could be indicative a simple syntax error in the header file or linkdef files. Make sure the header are properly parsed by the regular compiler and then check the linkdef file for an issue. If you still can not find anything, please upload them here and give us the rootcling command line.