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)