Integrated 'correct' algorithm into support_status.

[SVN r76670]
This commit is contained in:
Bruno Lalande 2012-01-24 21:02:01 +00:00
parent e97af061f5
commit ba013bdef2
3 changed files with 17 additions and 8 deletions

View File

@ -0,0 +1,13 @@
[heading Supported geometries]
[table
[[Geometry][Status]]
[[Point][ [$img/ok.png] ]]
[[Segment][ [$img/ok.png] ]]
[[Box][ [$img/ok.png] ]]
[[Linestring][ [$img/ok.png] ]]
[[Ring][ [$img/ok.png] ]]
[[Polygon][ [$img/ok.png] ]]
[[MultiPoint][ [$img/ok.png] ]]
[[MultiLinestring][ [$img/ok.png] ]]
[[MultiPolygon][ [$img/ok.png] ]]
]

View File

@ -71,6 +71,7 @@ DECLARE_UNARY_ALGORITHM (area)
DECLARE_UNARY_ALGORITHM (clear)
DECLARE_BINARY_ALGORITHM(convert)
DECLARE_UNARY_ALGORITHM (convex_hull)
DECLARE_UNARY_ALGORITHM (correct)
DECLARE_BINARY_ALGORITHM(distance)
@ -185,6 +186,7 @@ void support_status()
test_unary_algorithm<clear, all_types, OutputFactory>("clear");
test_binary_algorithm<convert, all_types, all_types, OutputFactory>("convert");
test_unary_algorithm<convex_hull, all_types, OutputFactory>("convex_hull");
test_unary_algorithm<convex_hull, all_types, OutputFactory>("correct");
test_binary_algorithm<distance, all_types, all_types, OutputFactory>("distance");
}

View File

@ -194,14 +194,8 @@ namespace dispatch
{
template <typename Geometry, typename Tag = typename tag<Geometry>::type>
struct correct
{
BOOST_MPL_ASSERT_MSG
(
false, NOT_OR_NOT_YET_IMPLEMENTED_FOR_THIS_GEOMETRY_TYPE
, (types<Geometry>)
);
};
struct correct: not_implemented<Tag>
{};
template <typename Point>
struct correct<Point, point_tag>