Boost logo

Geometry :

Subject: [ggl] intersection_segment...
From: Bruno Lalande (bruno.lalande)
Date: 2009-06-26 08:57:38


Hi,

You didn't parameterize ggl::segment in the template list. I think the
right call is:

ggl::intersection < ggl::point_2d, ggl::segment<ggl::point_2d>,
ggl::segment<ggl::point_2d>, std::back_insert_iterator<
std::vector<ggl::point_2d> > > (s1, s2,
std::back_inserter(intersected));

But BTW, isn't it possible to use template parameters deduction here?
I think you could try:

ggl::intersection<ggl::point_2d>(s1, s2, std::back_inserter(intersected));

Regards
Bruno


Geometry list run by mateusz at loskot.net