|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r76100 - trunk/libs/geometry/doc/src/docutils/tools/support_status
From: bruno.lalande_at_[hidden]
Date: 2011-12-21 17:53:11
Author: bruno.lalande
Date: 2011-12-21 17:53:10 EST (Wed, 21 Dec 2011)
New Revision: 76100
URL: http://svn.boost.org/trac/boost/changeset/76100
Log:
Added append to support_status (a little bit hacky right now).
Text files modified:
trunk/libs/geometry/doc/src/docutils/tools/support_status/support_status.cpp | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
Modified: trunk/libs/geometry/doc/src/docutils/tools/support_status/support_status.cpp
==============================================================================
--- trunk/libs/geometry/doc/src/docutils/tools/support_status/support_status.cpp (original)
+++ trunk/libs/geometry/doc/src/docutils/tools/support_status/support_status.cpp 2011-12-21 17:53:10 EST (Wed, 21 Dec 2011)
@@ -7,6 +7,7 @@
#define BOOST_GEOMETRY_IMPLEMENTATION_STATUS_BUILD true
#include <boost/geometry/core/cs.hpp>
#include <boost/geometry/geometries/geometries.hpp>
+#include <boost/geometry/algorithms/append.hpp>
#include <boost/geometry/algorithms/convert.hpp>
#include <boost/geometry/algorithms/distance.hpp>
#include <boost/geometry/strategies/cartesian/distance_pythagoras.hpp>
@@ -30,15 +31,19 @@
segment_type
> types;
+#define DECLARE_CHECK_1(algorithm) \
+ template <typename G, typename> \
+ struct check_##algorithm: boost::geometry::dispatch::algorithm<G, point_type> \
+ {};
-#define DECLARE_CHECK(algorithm) \
+#define DECLARE_CHECK_2(algorithm) \
template <typename G1, typename G2> \
struct check_##algorithm: boost::geometry::dispatch::algorithm<G1, G2> \
{};
-DECLARE_CHECK(distance)
-DECLARE_CHECK(convert)
-DECLARE_CHECK(append)
+DECLARE_CHECK_1(append)
+DECLARE_CHECK_2(distance)
+DECLARE_CHECK_2(convert)
template <template <typename, typename> class Dispatcher, typename G1 = void>
@@ -72,6 +77,10 @@
int main()
{
+ std::cout << "APPEND" << std::endl;
+ boost::mpl::for_each<boost::mpl::vector<int> >(tester<check_append>());
+ std::cout << std::endl;
+
std::cout << "DISTANCE" << std::endl;
boost::mpl::for_each<types>(tester<check_distance>());
std::cout << std::endl;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk