
17 Jan
2009
17 Jan
'09
7:32 p.m.
Michael Marcin a écrit :
template<> fixed dot_product( const vec3<fixed>& a, const vec3<fixed>& b ) { fixed result = { static_cast<boost::int32_t> ( ( boost::int64_t(a.x.data) * b.x.data + boost::int64_t(a.y.data) * b.y.data + boost::int64_t(a.z.data) * b.z.data ) >> 16 ) }; return result; }
Well, SFNIAE and template overlaod should be enough Try remove this template<> from the fixed overload. -- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35