"whizz_kid" <[EMAIL PROTECTED]> writes:

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

Here is what 'edgcpfe --strict' has to say:

"junk.cc", line 16: error: specializing member
          "Class1<T>::tracing_name [with T=SpecializedClass]" without
          "template<>" syntax is nonstandard
   const char Class1<SpecializedClass>::tracing_name[] = 
"Class1<SpecializedClass>";
                                        ^

The fix:

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

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to