From 5f2db06c230f0eaacd65cf3fb67e62bb5c8124ec Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Thu, 8 Jun 2006 08:52:02 +0000 Subject: [PATCH] gcc 4 needs the extra template keyword --- vcg/space/color4.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vcg/space/color4.h b/vcg/space/color4.h index 8a4884ed..26d5f600 100644 --- a/vcg/space/color4.h +++ b/vcg/space/color4.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.13 2005/06/24 12:21:48 ponchio +Fixed "lerp" function. + Revision 1.12 2005/04/14 11:35:09 ponchio *** empty log message *** @@ -254,7 +257,7 @@ inline void Color4::ColorRamp(const float &minf,const float &maxf ,float v ) } -#if !defined(__GNUC__) +#if !defined(__GNUC__) || (__GNUC__ > 3) template <> #endif template <> @@ -266,7 +269,7 @@ inline void Color4::Import(const Color4 &b) this->_v[3]=b[3]/255.0f; } -#if !defined(__GNUC__) +#if !defined(__GNUC__) || (__GNUC__ > 3) template <> // [Bug c++/14479] enum definition in template class with template methods causes error. #endif template <>