|
Geometry : |
Subject: Re: [geometry] error C4244: 'initializing' : conversion from '__int64' to 'const double', possible loss of data ...\boost_1_55_0\boost\geometry\strategies\cartesian\distance_projected_point.hpp(146)
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2013-11-17 13:13:50
On 16 November 2013 09:50, Bruno Lalande <bruno.lalande_at_[hidden]> wrote:
>>
>> calculation_type const c1 = calculation_type(dot_product(v,v));
>
> We're not giving the choice to the user to use another calculation type so
> yes, that's probably the only way...
Yes, indeed.
> although I don't like the library to hide a risk which is indeed real.
Me neither, if nobody objects or comes up with different solution,
I'd submit the explicit cast then.
Best regards,
-- Mateusz Loskot, http://mateusz.loskot.net
Geometry list run by mateusz at loskot.net