|
Boost Users : |
Subject: Re: [Boost-users] [proto] applying proto to real problems
From: Joel Falcou (joel.falcou_at_[hidden])
Date: 2009-01-17 14:32:52
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net