Fixed missing _object(){ } for construct_wp/p functors of projection traits

This commit is contained in:
Mael Rouxel-Labbé 2017-04-30 19:51:49 +02:00
parent 37eac35321
commit 9f366d6acf
2 changed files with 11 additions and 0 deletions

View File

@ -958,6 +958,12 @@ public:
return Intersect_2();
}
Construct_point_2 construct_point_2_object() const
{ return Construct_point_2();}
Construct_weighted_point_2 construct_weighted_point_2_object() const
{ return Construct_weighted_point_2();}
Construct_segment_2 construct_segment_2_object() const
{return Construct_segment_2();}

View File

@ -34,6 +34,11 @@ int main()
assert( k.compute_squared_length_2_object()(v3) == v2.squared_length() );
assert( p3 == k.construct_point_2_object()(p3) );
assert( p3 == k.construct_point_2_object()(wp3) );
assert( wp3 == k.construct_weighted_point_2_object()(p3, 1) );
assert( wp3 == k.construct_weighted_point_2_object()(wp3) );
assert( k.compare_power_distance_2_object()(p3, wq3, wr3) ==
CGAL::compare_power_distance(p2, wq2, wr2) );