Hi all,

I am having some problem compiling the following code in gcc 3.4.4

File: Class1.C
==========>

 #include "Logging.h"

 template <class T>
 class Class1 {
     public:
     static const char tracing_name[];
     private:
     int a;
     T c;
 };
 class SpecializedClass {
     int b;
 };

 TRACE_CLASS_MACRO(Class1<SpecializedClass>);

<=========


File: Logging.h
===========>

#define TRACE_CLASS_MACRO(class_id) \
    const char class_id::tracing_name[] = #class_id

<===========

The above code compiles fine with 2.95.1
compiling with 3.4.4 results in the following error messages:

error: too few template-parameter-lists
error: expected `,' or `;' before '=' token


Can anyone please tell me whats happenning here....??

Thanking you in anticiaption... 
With regards, 
Raj

_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to