From d3e829ffd8bd078a45fe8a1a5746437ccdefb734 Mon Sep 17 00:00:00 2001 From: Barend Gehrels Date: Sat, 17 Dec 2011 11:34:57 +0000 Subject: [PATCH] Fixed multi/wkt examples [SVN r76013] --- doc/src/examples/algorithms/create_svg_overlay.hpp | 2 +- doc/src/examples/geometries/register/multi_point.cpp | 1 + doc/src/examples/geometries/register/multi_point_templated.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/src/examples/algorithms/create_svg_overlay.hpp b/doc/src/examples/algorithms/create_svg_overlay.hpp index add3bb3f6..e4cd1fcf3 100644 --- a/doc/src/examples/algorithms/create_svg_overlay.hpp +++ b/doc/src/examples/algorithms/create_svg_overlay.hpp @@ -36,7 +36,7 @@ void create_svg(std::string const& filename, Geometry const& a, Geometry const& mapper.map(a, "fill-opacity:0.5;fill:rgb(153,204,0);stroke:rgb(153,204,0);stroke-width:2"); mapper.map(b, "fill-opacity:0.3;fill:rgb(51,51,153);stroke:rgb(51,51,153);stroke-width:2"); int i = 0; - BOOST_FOREACH(Geometry const& g, range) + BOOST_FOREACH(typename boost::range_value::type const& g, range) { mapper.map(g, "opacity:0.8;fill:none;stroke:rgb(255,128,0);stroke-width:4;stroke-dasharray:1,7;stroke-linecap:round"); std::ostringstream out; diff --git a/doc/src/examples/geometries/register/multi_point.cpp b/doc/src/examples/geometries/register/multi_point.cpp index fa8ad3308..daaadda9f 100644 --- a/doc/src/examples/geometries/register/multi_point.cpp +++ b/doc/src/examples/geometries/register/multi_point.cpp @@ -14,6 +14,7 @@ #include #include #include +#include typedef boost::tuple point_type; diff --git a/doc/src/examples/geometries/register/multi_point_templated.cpp b/doc/src/examples/geometries/register/multi_point_templated.cpp index b1738432d..44ef23207 100644 --- a/doc/src/examples/geometries/register/multi_point_templated.cpp +++ b/doc/src/examples/geometries/register/multi_point_templated.cpp @@ -14,6 +14,7 @@ #include #include #include +#include BOOST_GEOMETRY_REGISTER_MULTI_POINT_TEMPLATED(std::deque)