Boost logo

Geometry :

Subject: [geometry] Compile error when trying to calculate length of linestring
From: Mats Taraldsvik (mats.taraldsvik_at_[hidden])
Date: 2013-09-21 11:08:44


I'm trying to add some Linestring tests for reading WKB, however, I get
compile errors when trying to check the equality of the linestrings. If
I swap the trivialcheck with num_points, it runs fine.

Calculating the length of a linestring in the example code in the
reference [1] works fine, so I don't know exactly what the issue might be...

The errors appear when I try to add the following line to

     typedef bg::model::linestring<point_type> linestring_type;

     test_geometry_equals<linestring_type, true>(

       "LINESTRING (1.234 5.678, 9.1011 10.1112, 13.1415 16.1718)");

The compile errors for both gcc and clang are attached.


Mats Taraldsvik

Geometry list run by mateusz at