added a 'template<>' to the specialized constructors from a enum
This commit is contained in:
parent
363a14700e
commit
53c55f2f4f
|
@ -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<unsigned char>::Import(const Color4<float> &b)
|
|||
// _v[3] = T(b[3]);
|
||||
//}
|
||||
//
|
||||
template<>
|
||||
inline Color4<unsigned char>::Color4(Color4<unsigned char>::ColorConstant cc)
|
||||
{
|
||||
*((int *)this )= cc;
|
||||
}
|
||||
|
||||
template<>
|
||||
inline Color4<float>::Color4(Color4<float>::ColorConstant cc)
|
||||
{
|
||||
Import(Color4<unsigned char>((Color4<unsigned char>::ColorConstant)cc));
|
||||
|
|
Loading…
Reference in New Issue