This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Help with initializing static data members of a class template.....


Hi,

I'm hoping someone can point me in the right direction here. I'm trying to
initialize a static data member of a class template (using gcc 3.0.3 on
Solaris 2.7) but for some reason I keep getting a conflicting type error.
Is this a bug in gcc or is my syntax incorrect. Any help would be great.

Thanks,

Tom


Here is the error I'm getting:

si.h:140: warning: `class si::Val__<T*, O>' only defines a private
destructor
   and has no friends
si.h:149: conflicting types for `T si::Val__<T, O>::per_[nBaseDims]'
si.h:54: previous declaration as `T si::Val__<T, O>::per_[nBaseDims]'
si.h:352:15: warning: pasting "p1" and "+" does not give a valid
preprocessing token
si.h:352:15: warning: pasting "+" and "q" does not give a valid
preprocessing token
si.h:352:15: warning: pasting "p2" and "+" does not give a valid
preprocessing token
si.h:352:15: warning: pasting "+" and "q" does not give a valid
preprocessing token
si.h:352:15: warning: pasting "p3" and "+" does not give a valid
preprocessing token
si.h:352:15: warning: pasting "+" and "q" does not give a valid
preprocessing token
si.h:352:15: warning: pasting "p4" and "+" does not give a valid
preprocessing token

and here is the header file:

(See attached file: si.h)

Attachment: si.h
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]