diff --git a/benchmark/run.cpp b/benchmark/run.cpp index 4bc35d6ad..b1b3a8dde 100644 --- a/benchmark/run.cpp +++ b/benchmark/run.cpp @@ -356,7 +356,7 @@ struct test7 } void operator()() { - for (int i=0;i expr_grammar(transcoder("utf-8")); - for (int i=0;i static void setup(geometry_type & geom, Args const& args) { typename boost::mpl::at >::type box = boost::fusion::at_c<0>(args); - agg::path_storage * ps = new agg::path_storage(); // this will leak memory! + agg::path_storage * ps = new agg::path_storage(); // FIXME: this will leak memory! ps->move_to(box.minx(),box.miny()); ps->line_to(box.minx(),box.maxy()); ps->line_to(box.maxx(),box.maxy()); @@ -207,6 +209,17 @@ struct converter_traits } }; +template +struct converter_traits +{ + typedef T geometry_type; + typedef typename agg::conv_close_polygon conv_type; + template + static void setup(geometry_type & geom, Args const& args) + { + // no-op + } +}; template struct converter_traits