Boost logo

Geometry :

Subject: [geometry] compiler error side_by_triangle boost_1_61_0
From: Egon_Schaal_CADCONS_DE (egon.schaal_at_[hidden])
Date: 2016-08-01 04:26:57


Hello

I have a small example with brings compiler error

E:\boost\boost_1_61_0\boost\geometry\strategies\cartesian\side_by_triangle.h
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

 

#include <iostream>

 

#include <boost/geometry/strategies/cartesian/side_by_triangle.hpp>

#include <boost/geometry.hpp>

 

using namespace std;

 

int main(int argc, char *argv[])

{

  namespace bg = boost::geometry;

 

  typedef bg::model::point<double, 2, bg::cs::cartesian> point_t;

  point_t _p1(100.0, 100.0);

  point_t _p3(100.0, -100.0);

 

  point_t _pt(120.0, 50.0);

 

  int s = bg::strategy::side::side_by_triangle<point_t>::apply(_p1, _p3,
_pt);

 

  std::cout << s;

 

  return 0;

}

 

 

Mit freundlichen Grüßen / Best regards

Egon Schaal

 

/////////////////////////////////////

Cad-Consulting, Softwareerstellung

Aspacherstr 15

D-71522 Backnang

Egon.schaal_at_[hidden]

http://www.cad-cons.com <http://www.cad-cons.com/>

Tel. +49(0)7191-84498

Fax +49(0)7191-71410

Mobil +49(0)1713883254

/////////////////////////////////////

 



Geometry list run by mateusz at loskot.net