Boost logo

Geometry :

Subject: Re: [geometry] compiler error side_by_triangle boost_1_61_0
From: Egon_Schaal_CADCONS_DE (egon.schaal_at_[hidden])
Date: 2016-08-03 12:25:40

Hi Adam,

Thanks. That works.


Mit freundlichen Grüßen / Best regards

Egon Schaal



Cad-Consulting, Softwareerstellung

Aspacherstr 15

D-71522 Backnang

 <mailto:Egon.schaal_at_[hidden]> Egon.schaal_at_[hidden]


Tel. +49(0)7191-84498

Fax +49(0)7191-71410

Mobil +49(0)1713883254



Von: Geometry [mailto:geometry-bounces_at_[hidden]] Im Auftrag von Adam
Gesendet: Mittwoch, 3. August 2016 16:43
An: Boost.Geometry library mailing list
Betreff: Re: [geometry] compiler error side_by_triangle boost_1_61_0


Hi Egon,

Egon Schaal_cadcons_de wrote:


I have a small example with brings compiler error

pp:239: Fehler: no match for 'operator>' (operand types are 'promoted_type
{aka boost::geometry::model::point<double, 2u,
boost::geometry::cs::cartesian>}' and 'const promoted_type {aka const
boost::geometry::model::point<double, 2u, boost::geometry::cs::cartesian>}')

             : s > zero ? 1


Compiler is mingw53.0 and msvc 2015


It's because this strategy takes CalculationType as template parameter, not
By default the CalculationType is deduced from coordinate types of passed
So you should modify your code like this:

bg::strategy::side::side_by_triangle<>::apply(_p1, _p3, _pt);


Geometry list run by mateusz at