|
From: | Paul Pluzhnikov |
Subject: | Re: macro problem(re-mailing with sample code), compiles fine with 2.95.1, fails with 3.4.4 |
Date: | Wed, 08 Mar 2006 21:55:59 -0800 |
User-agent: | Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux) |
"whizz_kid" <techybrainz@gmail.com> 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.
[Prev in Thread] | Current Thread | [Next in Thread] |