diff --git a/include/mapnik/vertex_converters.hpp b/include/mapnik/vertex_converters.hpp index c6a75f409..328c3e8f6 100644 --- a/include/mapnik/vertex_converters.hpp +++ b/include/mapnik/vertex_converters.hpp @@ -105,7 +105,7 @@ struct converter_traits template static void setup(geometry_type & geom, Args & args) { - typename boost::mpl::at >::type box = boost::fusion::at_c<0>(args); + typename boost::mpl::at >::type const& box = boost::fusion::at_c<0>(args); geom.clip_box(box.minx(),box.miny(),box.maxx(),box.maxy()); } }; @@ -120,7 +120,7 @@ struct converter_traits template static void setup(geometry_type & geom, Args & args) { - typename boost::mpl::at >::type sym = boost::fusion::at_c<2>(args); + typename boost::mpl::at >::type const& sym = boost::fusion::at_c<2>(args); double scale_factor = boost::fusion::at_c<5>(args); stroke const& stroke_ = sym.get_stroke(); dash_array const& d = stroke_.get_dash_array(); @@ -144,7 +144,7 @@ struct converter_traits template static void setup(geometry_type & geom, Args & args) { - typename boost::mpl::at >::type sym = boost::fusion::at_c<2>(args); + typename boost::mpl::at >::type const& sym = boost::fusion::at_c<2>(args); stroke const& stroke_ = sym.get_stroke(); set_join_caps(stroke_,geom); geom.generator().miter_limit(stroke_.get_miterlimit()); @@ -163,7 +163,7 @@ struct converter_traits template static void setup(geometry_type & geom, Args & args) { - typename boost::mpl::at >::type box = boost::fusion::at_c<0>(args); + typename boost::mpl::at >::type const& box = boost::fusion::at_c<0>(args); geom.clip_box(box.minx(),box.miny(),box.maxx(),box.maxy()); } }; @@ -178,8 +178,8 @@ struct converter_traits template static void setup(geometry_type & geom, Args & args) { - typename boost::mpl::at >::type tr = boost::fusion::at_c<3>(args); - typename boost::mpl::at >::type prj_trans = boost::fusion::at_c<4>(args); + typename boost::mpl::at >::type const& tr = boost::fusion::at_c<3>(args); + typename boost::mpl::at >::type const& prj_trans = boost::fusion::at_c<4>(args); geom.set_proj_trans(prj_trans); geom.set_trans(tr); } @@ -202,7 +202,7 @@ struct converter_traits template static void setup(geometry_type & geom, Args & args) { - typename boost::mpl::at >::type sym = boost::fusion::at_c<2>(args); + typename boost::mpl::at >::type const& sym = boost::fusion::at_c<2>(args); boost::array const& m = sym.get_transform(); geom.trans_.load_from(&m[0]); } @@ -217,7 +217,7 @@ struct converter_traits template static void setup(geometry_type & geom, Args & args) { - typename boost::mpl::at >::type sym = boost::fusion::at_c<2>(args); + typename boost::mpl::at >::type const& sym = boost::fusion::at_c<2>(args); geom.set_offset(sym.offset()); } };