From 53c55f2f4f872e1ccb957a9d691ad2bbf275c341 Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 9 Sep 2004 08:39:33 +0000 Subject: [PATCH] added a 'template<>' to the specialized constructors from a enum --- vcg/space/color4.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vcg/space/color4.h b/vcg/space/color4.h index 1a7d3a1f..5c39f535 100644 --- a/vcg/space/color4.h +++ b/vcg/space/color4.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.9 2004/09/03 13:58:48 fasano +Corretto errore sintattico nelle specializzazioni parziali (float e char) di due costruttori di Color4 + Revision 1.8 2004/07/15 11:01:43 ganovelli added inclusion of point3.h @@ -272,11 +275,13 @@ inline void Color4::Import(const Color4 &b) // _v[3] = T(b[3]); //} // +template<> inline Color4::Color4(Color4::ColorConstant cc) { *((int *)this )= cc; } +template<> inline Color4::Color4(Color4::ColorConstant cc) { Import(Color4((Color4::ColorConstant)cc));