diff --git a/bindings/python/mapnik_symbolizer.cpp b/bindings/python/mapnik_symbolizer.cpp index 130cb8cc2..ef23bdb98 100644 --- a/bindings/python/mapnik_symbolizer.cpp +++ b/bindings/python/mapnik_symbolizer.cpp @@ -105,7 +105,7 @@ std::shared_ptr numeric_wrapper(const objec return result; } -struct extract_python_object : public mapnik::util::static_visitor +struct extract_python_object { using result_type = boost::python::object; @@ -153,7 +153,7 @@ std::size_t hash_impl_2(T const& sym) return mapnik::symbolizer_hash::value(sym); } -struct extract_underlying_type_visitor : mapnik::util::static_visitor +struct extract_underlying_type_visitor { template boost::python::object operator() (T const& sym) const diff --git a/bindings/python/mapnik_value_converter.hpp b/bindings/python/mapnik_value_converter.hpp index 19ea7fc53..4f152a035 100644 --- a/bindings/python/mapnik_value_converter.hpp +++ b/bindings/python/mapnik_value_converter.hpp @@ -31,7 +31,7 @@ namespace boost { namespace python { - struct value_converter : public mapnik::util::static_visitor + struct value_converter { PyObject * operator() (mapnik::value_integer val) const { diff --git a/demo/viewer/styles_model.cpp b/demo/viewer/styles_model.cpp index 68f5ab9de..abd3ed6a2 100644 --- a/demo/viewer/styles_model.cpp +++ b/demo/viewer/styles_model.cpp @@ -122,7 +122,7 @@ private: }; -struct symbolizer_info : public mapnik::util::static_visitor +struct symbolizer_info { QString operator() (mapnik::point_symbolizer const& sym) const { @@ -185,7 +185,7 @@ struct symbolizer_info : public mapnik::util::static_visitor } }; -struct symbolizer_icon : public mapnik::util::static_visitor +struct symbolizer_icon { QIcon operator() (mapnik::polygon_symbolizer const& sym) const { diff --git a/include/mapnik/attribute_collector.hpp b/include/mapnik/attribute_collector.hpp index 63e6ad992..e9946fb49 100644 --- a/include/mapnik/attribute_collector.hpp +++ b/include/mapnik/attribute_collector.hpp @@ -52,7 +52,7 @@ namespace mapnik { template -struct expression_attributes : util::static_visitor +struct expression_attributes { explicit expression_attributes(Container& names) : names_(names) {} @@ -107,7 +107,7 @@ public: }; template -struct extract_attribute_names : util::static_visitor +struct extract_attribute_names { explicit extract_attribute_names(Container& names) : names_(names), @@ -159,7 +159,7 @@ private: expression_attributes > f_attr_; }; -struct symbolizer_attributes : public util::static_visitor<> +struct symbolizer_attributes { symbolizer_attributes(std::set& names, double & filter_factor) diff --git a/include/mapnik/evaluate_global_attributes.hpp b/include/mapnik/evaluate_global_attributes.hpp index b9263553a..b7da878a5 100644 --- a/include/mapnik/evaluate_global_attributes.hpp +++ b/include/mapnik/evaluate_global_attributes.hpp @@ -39,7 +39,7 @@ namespace mapnik { namespace { template -struct evaluate_expression : util::static_visitor +struct evaluate_expression { using value_type = T; @@ -133,7 +133,7 @@ struct evaluate_expression : util::static_visitor }; template -struct evaluate_expression : util::static_visitor +struct evaluate_expression { using value_type = T; @@ -274,7 +274,7 @@ std::tuple pre_evaluate_expression (expression_ptr const& expr) struct evaluate_global_attributes : mapnik::noncopyable { template - struct evaluator : util::static_visitor<> + struct evaluator { evaluator(symbolizer_base::cont_type::value_type & prop, Attributes const& attributes) : prop_(prop), @@ -296,7 +296,7 @@ struct evaluate_global_attributes : mapnik::noncopyable }; template - struct extract_symbolizer : util::static_visitor<> + struct extract_symbolizer { extract_symbolizer(Attributes const& attributes) : attributes_(attributes) {} diff --git a/include/mapnik/expression_evaluator.hpp b/include/mapnik/expression_evaluator.hpp index 0db82062c..1d37bdecc 100644 --- a/include/mapnik/expression_evaluator.hpp +++ b/include/mapnik/expression_evaluator.hpp @@ -35,12 +35,12 @@ namespace mapnik { template -struct evaluate : util::static_visitor +struct evaluate { using feature_type = T0; using value_type = T1; using variable_type = T2; - + using result_type = T1; // we need this because automatic result_type deduction fails explicit evaluate(feature_type const& f, variable_type const& v) : feature_(f), vars_(v) {} diff --git a/include/mapnik/image_data_any.hpp b/include/mapnik/image_data_any.hpp index c9b2d0b2e..c09bfdf7d 100644 --- a/include/mapnik/image_data_any.hpp +++ b/include/mapnik/image_data_any.hpp @@ -40,7 +40,7 @@ using image_data_base = util::variant +struct get_bytes_visitor { template unsigned char* operator()(T & data) @@ -49,7 +49,7 @@ struct get_bytes_visitor : util::static_visitor } }; -struct get_bytes_visitor_const : util::static_visitor +struct get_bytes_visitor_const { template unsigned char const* operator()(T const& data) const @@ -58,7 +58,7 @@ struct get_bytes_visitor_const : util::static_visitor } }; -struct get_width_visitor : util::static_visitor +struct get_width_visitor { template std::size_t operator()(T const& data) const @@ -67,7 +67,7 @@ struct get_width_visitor : util::static_visitor } }; -struct get_height_visitor : util::static_visitor +struct get_height_visitor { template std::size_t operator()(T const& data) const diff --git a/include/mapnik/image_filter.hpp b/include/mapnik/image_filter.hpp index 668d55129..064e94a43 100644 --- a/include/mapnik/image_filter.hpp +++ b/include/mapnik/image_filter.hpp @@ -761,7 +761,7 @@ void apply_filter(Src & src, invert const& /*op*/) } template -struct filter_visitor : util::static_visitor +struct filter_visitor { filter_visitor(Src & src) : src_(src) {} @@ -775,7 +775,7 @@ struct filter_visitor : util::static_visitor Src & src_; }; -struct filter_radius_visitor : util::static_visitor +struct filter_radius_visitor { int & radius_; filter_radius_visitor(int & radius) diff --git a/include/mapnik/image_filter_types.hpp b/include/mapnik/image_filter_types.hpp index f06118903..e4c9df03b 100644 --- a/include/mapnik/image_filter_types.hpp +++ b/include/mapnik/image_filter_types.hpp @@ -267,7 +267,7 @@ inline std::ostream& operator<< (std::ostream& os, colorize_alpha const& filter) template -struct to_string_visitor : util::static_visitor +struct to_string_visitor { to_string_visitor(Out & out) : out_(out) {} diff --git a/include/mapnik/json/feature_grammar.hpp b/include/mapnik/json/feature_grammar.hpp index f45c3de7e..a75a84f3a 100644 --- a/include/mapnik/json/feature_grammar.hpp +++ b/include/mapnik/json/feature_grammar.hpp @@ -46,7 +46,7 @@ namespace standard_wide = boost::spirit::standard_wide; using standard_wide::space_type; class attribute_value_visitor - : public mapnik::util::static_visitor + { public: attribute_value_visitor(mapnik::transcoder const& tr) diff --git a/include/mapnik/json/geometry_util.hpp b/include/mapnik/json/geometry_util.hpp index dd0c56694..be42d7ede 100644 --- a/include/mapnik/json/geometry_util.hpp +++ b/include/mapnik/json/geometry_util.hpp @@ -31,7 +31,7 @@ namespace mapnik { namespace json { // geometries template -struct create_point : util::static_visitor<> +struct create_point { explicit create_point(Path & path) : path_(path) {} @@ -49,7 +49,7 @@ struct create_point : util::static_visitor<> }; template -struct create_linestring : util::static_visitor<> +struct create_linestring { explicit create_linestring(Path & path) : path_(path) {} @@ -77,7 +77,7 @@ struct create_linestring : util::static_visitor<> }; template -struct create_polygon : util::static_visitor<> +struct create_polygon { explicit create_polygon(Path & path) : path_(path) {} @@ -111,7 +111,7 @@ struct create_polygon : util::static_visitor<> // multi-geometries template -struct create_multipoint : util::static_visitor<> +struct create_multipoint { explicit create_multipoint(Path & path) : path_(path) {} @@ -133,7 +133,7 @@ struct create_multipoint : util::static_visitor<> }; template -struct create_multilinestring : util::static_visitor<> +struct create_multilinestring { explicit create_multilinestring(Path & path) : path_(path) {} @@ -163,7 +163,7 @@ struct create_multilinestring : util::static_visitor<> }; template -struct create_multipolygon : util::static_visitor<> +struct create_multipolygon { explicit create_multipolygon(Path & path) : path_(path) {} diff --git a/include/mapnik/json/symbolizer_grammar.hpp b/include/mapnik/json/symbolizer_grammar.hpp index 219b838fc..bd34af0bd 100644 --- a/include/mapnik/json/symbolizer_grammar.hpp +++ b/include/mapnik/json/symbolizer_grammar.hpp @@ -45,7 +45,7 @@ namespace standard_wide = boost::spirit::standard_wide; using standard_wide::space_type; template -struct json_value_visitor : mapnik::util::static_visitor<> +struct json_value_visitor { json_value_visitor(Symbolizer & sym, mapnik::keys key) : sym_(sym), key_(key) {} @@ -82,7 +82,7 @@ struct json_value_visitor : mapnik::util::static_visitor<> }; template -struct put_property_visitor : mapnik::util::static_visitor<> +struct put_property_visitor { using value_type = T; diff --git a/include/mapnik/json/topojson_utils.hpp b/include/mapnik/json/topojson_utils.hpp index 41d73d3cf..5f7e739d5 100644 --- a/include/mapnik/json/topojson_utils.hpp +++ b/include/mapnik/json/topojson_utils.hpp @@ -30,7 +30,7 @@ namespace mapnik { namespace topojson { -struct bounding_box_visitor : public mapnik::util::static_visitor > +struct bounding_box_visitor { bounding_box_visitor(topology const& topo) : topo_(topo) {} diff --git a/include/mapnik/markers_placement.hpp b/include/mapnik/markers_placement.hpp index 97dc8649e..5b6964461 100644 --- a/include/mapnik/markers_placement.hpp +++ b/include/mapnik/markers_placement.hpp @@ -44,7 +44,7 @@ public: markers_vertex_first_placement, markers_vertex_last_placement>; - class get_point_visitor : public util::static_visitor + class get_point_visitor { public: get_point_visitor(double &x, double &y, double &angle, bool ignore_placement) diff --git a/include/mapnik/params_impl.hpp b/include/mapnik/params_impl.hpp index b17f10ea2..58ae52b00 100644 --- a/include/mapnik/params_impl.hpp +++ b/include/mapnik/params_impl.hpp @@ -121,7 +121,7 @@ boost::optional param_cast(std::string const& source) } // end namespace detail template -struct value_extractor_visitor : public util::static_visitor<> +struct value_extractor_visitor { value_extractor_visitor(boost::optional & var) diff --git a/include/mapnik/renderer_common/process_group_symbolizer.hpp b/include/mapnik/renderer_common/process_group_symbolizer.hpp index 08302c459..b0463858d 100644 --- a/include/mapnik/renderer_common/process_group_symbolizer.hpp +++ b/include/mapnik/renderer_common/process_group_symbolizer.hpp @@ -154,7 +154,7 @@ using render_thunk_list = std::list; // The bounding boxes can be used for layout, and the thunks are // used to re-render at locations according to the group layout. -struct render_thunk_extractor : public util::static_visitor<> +struct render_thunk_extractor { render_thunk_extractor(box2d & box, render_thunk_list & thunks, diff --git a/include/mapnik/renderer_common/process_raster_symbolizer.hpp b/include/mapnik/renderer_common/process_raster_symbolizer.hpp index 6b81c6f0e..7229c60f2 100644 --- a/include/mapnik/renderer_common/process_raster_symbolizer.hpp +++ b/include/mapnik/renderer_common/process_raster_symbolizer.hpp @@ -44,7 +44,7 @@ namespace mapnik { namespace detail { template -struct image_data_dispatcher : util::static_visitor +struct image_data_dispatcher { using composite_function = F; image_data_dispatcher(int start_x, int start_y, @@ -105,7 +105,7 @@ private: }; template -struct image_data_warp_dispatcher : util::static_visitor +struct image_data_warp_dispatcher { using composite_function = F; image_data_warp_dispatcher(proj_transform const& prj_trans, diff --git a/include/mapnik/symbolizer.hpp b/include/mapnik/symbolizer.hpp index 941edfe4a..d15c1e10e 100644 --- a/include/mapnik/symbolizer.hpp +++ b/include/mapnik/symbolizer.hpp @@ -339,7 +339,7 @@ struct evaluate_expression_wrapper }; template -struct extract_value : public util::static_visitor +struct extract_value { using result_type = T; @@ -379,7 +379,7 @@ struct extract_value : public util::static_visitor }; template -struct extract_raw_value : public util::static_visitor +struct extract_raw_value { using result_type = T1; diff --git a/include/mapnik/symbolizer_dispatch.hpp b/include/mapnik/symbolizer_dispatch.hpp index a0320cc77..213a38835 100644 --- a/include/mapnik/symbolizer_dispatch.hpp +++ b/include/mapnik/symbolizer_dispatch.hpp @@ -67,7 +67,7 @@ struct process_impl * \param sym Symbolizer object */ template -struct symbolizer_dispatch : public util::static_visitor<> +struct symbolizer_dispatch { symbolizer_dispatch(Processor & output, mapnik::feature_impl & f, diff --git a/include/mapnik/symbolizer_hash.hpp b/include/mapnik/symbolizer_hash.hpp index 9c1cc45fb..feadf02d3 100644 --- a/include/mapnik/symbolizer_hash.hpp +++ b/include/mapnik/symbolizer_hash.hpp @@ -33,7 +33,7 @@ namespace mapnik { -struct property_value_hash_visitor : util::static_visitor +struct property_value_hash_visitor { std::size_t operator() (color const& val) const { @@ -82,7 +82,7 @@ struct symbolizer_hash } }; -struct symbolizer_hash_visitor : util::static_visitor +struct symbolizer_hash_visitor { template std::size_t operator() (Symbolizer const& sym) const diff --git a/include/mapnik/symbolizer_utils.hpp b/include/mapnik/symbolizer_utils.hpp index 65e3f42bc..00a4f0208 100644 --- a/include/mapnik/symbolizer_utils.hpp +++ b/include/mapnik/symbolizer_utils.hpp @@ -129,7 +129,7 @@ struct symbolizer_traits // symbolizer name impl namespace detail { -struct symbolizer_name_impl : public util::static_visitor +struct symbolizer_name_impl { public: template @@ -150,7 +150,7 @@ inline std::string symbolizer_name(symbolizer const& sym) /* template -class symbolizer_property_value_string : public util::static_visitor +class symbolizer_property_value_string { public: symbolizer_property_value_string (Meta const& meta) @@ -237,7 +237,7 @@ private: Meta const& meta_; }; -struct symbolizer_to_json : public util::static_visitor +struct symbolizer_to_json { using result_type = std::string; diff --git a/include/mapnik/tiff_io.hpp b/include/mapnik/tiff_io.hpp index d5ebbc4d1..af60309d1 100644 --- a/include/mapnik/tiff_io.hpp +++ b/include/mapnik/tiff_io.hpp @@ -179,7 +179,7 @@ struct tiff_config }; -struct tag_setter : public mapnik::util::static_visitor<> +struct tag_setter { tag_setter(TIFF * output, tiff_config & config) : output_(output), @@ -270,7 +270,7 @@ void set_tiff_config(TIFF* output, tiff_config & config) // Set the compression for the TIFF TIFFSetField(output, TIFFTAG_COMPRESSION, config.compression); - if (COMPRESSION_ADOBE_DEFLATE == config.compression + if (COMPRESSION_ADOBE_DEFLATE == config.compression || COMPRESSION_DEFLATE == config.compression || COMPRESSION_LZW == config.compression) { @@ -332,7 +332,7 @@ void save_as_tiff(T1 & file, T2 const& image, tiff_config & config) else if (TIFF_WRITE_STRIPPED == config.method) { std::size_t rows_per_strip = config.rows_per_strip; - if (0 == rows_per_strip) + if (0 == rows_per_strip) { rows_per_strip = height; } @@ -359,8 +359,8 @@ void save_as_tiff(T1 & file, T2 const& image, tiff_config & config) { int tile_width = config.tile_width; int tile_height = config.tile_height; - - if (0 == tile_height) + + if (0 == tile_height) { tile_height = height; if (height % 16 > 0) @@ -385,7 +385,7 @@ void save_as_tiff(T1 & file, T2 const& image, tiff_config & config) int end_x = (width / tile_width + 1) * tile_width; end_y = std::min(end_y, height); end_x = std::min(end_x, width); - + for (int y = 0; y < end_y; y += tile_height) { int ty1 = std::min(height, y + tile_height) - y; diff --git a/include/mapnik/transform_expression.hpp b/include/mapnik/transform_expression.hpp index 86d52e541..d73554b5a 100644 --- a/include/mapnik/transform_expression.hpp +++ b/include/mapnik/transform_expression.hpp @@ -192,7 +192,7 @@ inline void clear(transform_node& val) namespace { -struct is_null_transform_node : public mapnik::util::static_visitor +struct is_null_transform_node { bool operator() (value const& val) const { diff --git a/include/mapnik/transform_processor.hpp b/include/mapnik/transform_processor.hpp index ee1b24661..58f7e7c09 100644 --- a/include/mapnik/transform_processor.hpp +++ b/include/mapnik/transform_processor.hpp @@ -46,7 +46,7 @@ struct transform_processor using transform_type = agg::trans_affine; template - struct attribute_collector : util::static_visitor + struct attribute_collector { expression_attributes collect_; @@ -97,7 +97,7 @@ struct transform_processor } }; - struct node_evaluator : util::static_visitor + struct node_evaluator { node_evaluator(transform_type& tr, feature_type const& feat, diff --git a/include/mapnik/value.hpp b/include/mapnik/value.hpp index 987bcc433..29d4000bc 100644 --- a/include/mapnik/value.hpp +++ b/include/mapnik/value.hpp @@ -72,7 +72,7 @@ using value_base = util::variant + { bool operator() (value_integer lhs, value_double rhs) const { @@ -124,7 +124,7 @@ struct equals }; struct not_equals - : public util::static_visitor + { template bool operator() (const T &, const U &) const @@ -186,7 +186,7 @@ struct not_equals }; struct greater_than - : public util::static_visitor + { template bool operator()(const T &, const U &) const @@ -222,7 +222,7 @@ struct greater_than }; struct greater_or_equal - : public util::static_visitor + { template bool operator()(const T &, const U &) const @@ -258,7 +258,7 @@ struct greater_or_equal }; struct less_than - : public util::static_visitor + { template bool operator()(const T &, const U &) const @@ -295,7 +295,7 @@ struct less_than }; struct less_or_equal - : public util::static_visitor + { template bool operator()(const T &, const U &) const @@ -332,7 +332,7 @@ struct less_or_equal }; template -struct add : public util::static_visitor +struct add { using value_type = V; value_type operator() (value_unicode_string const& lhs , @@ -398,7 +398,7 @@ struct add : public util::static_visitor }; template -struct sub : public util::static_visitor +struct sub { using value_type = V; template @@ -436,7 +436,7 @@ struct sub : public util::static_visitor }; template -struct mult : public util::static_visitor +struct mult { using value_type = V; template @@ -473,7 +473,7 @@ struct mult : public util::static_visitor }; template -struct div: public util::static_visitor +struct div { using value_type = V; template @@ -514,7 +514,7 @@ struct div: public util::static_visitor }; template -struct mod: public util::static_visitor +struct mod { using value_type = V; template @@ -558,7 +558,7 @@ struct mod: public util::static_visitor }; template -struct negate : public util::static_visitor +struct negate { using value_type = V; @@ -589,7 +589,7 @@ template struct convert {}; template <> -struct convert : public util::static_visitor +struct convert { value_bool operator() (value_bool val) const { @@ -614,7 +614,7 @@ struct convert : public util::static_visitor }; template <> -struct convert : public util::static_visitor +struct convert { value_double operator() (value_double val) const { @@ -653,7 +653,7 @@ struct convert : public util::static_visitor }; template <> -struct convert : public util::static_visitor +struct convert { value_integer operator() (value_integer val) const { @@ -692,7 +692,7 @@ struct convert : public util::static_visitor }; template <> -struct convert : public util::static_visitor +struct convert { template std::string operator() (T val) const @@ -723,7 +723,7 @@ struct convert : public util::static_visitor } }; -struct to_unicode : public util::static_visitor +struct to_unicode { template @@ -753,7 +753,7 @@ struct to_unicode : public util::static_visitor } }; -struct to_expression_string : public util::static_visitor +struct to_expression_string { explicit to_expression_string(char quote = '\'') : quote_(quote) {} @@ -947,7 +947,7 @@ using value_adl_barrier::operator<<; namespace detail { -struct is_null_visitor : public util::static_visitor +struct is_null_visitor { bool operator() (value const& val) const { diff --git a/include/mapnik/value_hash.hpp b/include/mapnik/value_hash.hpp index 1a72108b4..0933f06d3 100644 --- a/include/mapnik/value_hash.hpp +++ b/include/mapnik/value_hash.hpp @@ -42,7 +42,7 @@ inline void hash_combine(std::size_t & seed, T const& v) seed ^= hasher(v) + 0x9e3779b9 + (seed<<6) + (seed>>2); } -struct value_hasher: public util::static_visitor +struct value_hasher { std::size_t operator() (value_null val) const { diff --git a/plugins/input/gdal/gdal_featureset.hpp b/plugins/input/gdal/gdal_featureset.hpp index 5d920630c..04f24ed0f 100644 --- a/plugins/input/gdal/gdal_featureset.hpp +++ b/plugins/input/gdal/gdal_featureset.hpp @@ -38,7 +38,7 @@ using gdal_query = mapnik::util::variant; class gdal_featureset : public mapnik::Featureset { - struct query_dispatch : public mapnik::util::static_visitor + struct query_dispatch { query_dispatch( gdal_featureset & featureset) : featureset_(featureset) {} diff --git a/plugins/input/geojson/geojson_datasource.cpp b/plugins/input/geojson/geojson_datasource.cpp index 59eda0efd..065226f01 100644 --- a/plugins/input/geojson/geojson_datasource.cpp +++ b/plugins/input/geojson/geojson_datasource.cpp @@ -53,7 +53,7 @@ using mapnik::parameters; DATASOURCE_PLUGIN(geojson_datasource) -struct attr_value_converter : public mapnik::util::static_visitor +struct attr_value_converter { mapnik::eAttributeType operator() (mapnik::value_integer) const { diff --git a/plugins/input/rasterlite/rasterlite_featureset.hpp b/plugins/input/rasterlite/rasterlite_featureset.hpp index a465ae90b..cf7973f15 100644 --- a/plugins/input/rasterlite/rasterlite_featureset.hpp +++ b/plugins/input/rasterlite/rasterlite_featureset.hpp @@ -35,7 +35,7 @@ using rasterlite_query = mapnik::util::variant; class rasterlite_featureset : public mapnik::Featureset { - struct query_dispatch : public mapnik::util::static_visitor + struct query_dispatch { query_dispatch( rasterlite_featureset & featureset) : featureset_(featureset) {} diff --git a/plugins/input/topojson/topojson_datasource.cpp b/plugins/input/topojson/topojson_datasource.cpp index 50ef1a8aa..23b3b2376 100644 --- a/plugins/input/topojson/topojson_datasource.cpp +++ b/plugins/input/topojson/topojson_datasource.cpp @@ -44,7 +44,7 @@ using mapnik::parameters; DATASOURCE_PLUGIN(topojson_datasource) -struct attr_value_converter : public mapnik::util::static_visitor +struct attr_value_converter { mapnik::eAttributeType operator() (mapnik::value_integer /*val*/) const { @@ -82,7 +82,7 @@ struct attr_value_converter : public mapnik::util::static_visitor +struct geometry_type_visitor { int operator() (mapnik::topojson::point const&) const { @@ -114,7 +114,7 @@ struct geometry_type_visitor : public mapnik::util::static_visitor } }; -struct collect_attributes_visitor : public mapnik::util::static_visitor +struct collect_attributes_visitor { mapnik::layer_descriptor & desc_; collect_attributes_visitor(mapnik::layer_descriptor & desc): diff --git a/plugins/input/topojson/topojson_featureset.cpp b/plugins/input/topojson/topojson_featureset.cpp index 6512b4e50..898c7db8c 100644 --- a/plugins/input/topojson/topojson_featureset.cpp +++ b/plugins/input/topojson/topojson_featureset.cpp @@ -51,7 +51,7 @@ BOOST_GEOMETRY_REGISTER_LINESTRING(std::vector) namespace mapnik { namespace topojson { struct attribute_value_visitor - : mapnik::util::static_visitor + { public: attribute_value_visitor(mapnik::transcoder const& tr) @@ -84,7 +84,7 @@ void assign_properties(mapnik::feature_impl & feature, T const& geom, mapnik::tr } template -struct feature_generator : public mapnik::util::static_visitor +struct feature_generator { feature_generator(Context & ctx, mapnik::transcoder const& tr, topology const& topo, std::size_t feature_id) : ctx_(ctx), diff --git a/src/agg/process_group_symbolizer.cpp b/src/agg/process_group_symbolizer.cpp index 6397454a1..7d2abb107 100644 --- a/src/agg/process_group_symbolizer.cpp +++ b/src/agg/process_group_symbolizer.cpp @@ -43,7 +43,7 @@ namespace mapnik { * to render it, and the boxes themselves should already be * in the detector from the placement_finder. */ -struct thunk_renderer : public util::static_visitor<> +struct thunk_renderer { using renderer_type = agg_renderer; using buffer_type = renderer_type::buffer_type; diff --git a/src/cairo/process_group_symbolizer.cpp b/src/cairo/process_group_symbolizer.cpp index 9b8e09342..23c69f7bb 100644 --- a/src/cairo/process_group_symbolizer.cpp +++ b/src/cairo/process_group_symbolizer.cpp @@ -43,7 +43,7 @@ namespace { // to render it, and the boxes themselves should already be // in the detector from the placement_finder. template -struct thunk_renderer : public util::static_visitor<> +struct thunk_renderer { using renderer_type = cairo_renderer; diff --git a/src/expression_string.cpp b/src/expression_string.cpp index 1e800184e..6fe39209e 100644 --- a/src/expression_string.cpp +++ b/src/expression_string.cpp @@ -33,7 +33,7 @@ namespace mapnik { -struct expression_string : util::static_visitor +struct expression_string { explicit expression_string(std::string & str) : str_(str) {} diff --git a/src/grid/process_group_symbolizer.cpp b/src/grid/process_group_symbolizer.cpp index 758653554..d622f066b 100644 --- a/src/grid/process_group_symbolizer.cpp +++ b/src/grid/process_group_symbolizer.cpp @@ -53,7 +53,7 @@ namespace mapnik { * in the detector from the placement_finder. */ template -struct thunk_renderer : public util::static_visitor<> +struct thunk_renderer { using renderer_type = grid_renderer; using buffer_type = typename renderer_type::buffer_type; diff --git a/src/group/group_layout_manager.cpp b/src/group/group_layout_manager.cpp index ecae32fb2..7c6f7b8c6 100644 --- a/src/group/group_layout_manager.cpp +++ b/src/group/group_layout_manager.cpp @@ -31,7 +31,7 @@ namespace mapnik { // This visitor will process offsets for the given layout -struct process_layout : public util::static_visitor<> +struct process_layout { // The vector containing the existing, centered item bounding boxes vector const& member_boxes_; diff --git a/src/parse_path.cpp b/src/parse_path.cpp index 8fdc19450..0064f3ab3 100644 --- a/src/parse_path.cpp +++ b/src/parse_path.cpp @@ -53,7 +53,7 @@ path_expression_ptr parse_path(std::string const& str) namespace path_processor_detail { - struct path_visitor_ : util::static_visitor + struct path_visitor_ { path_visitor_ (std::string & filename, feature_impl const& f) : filename_(filename), @@ -75,7 +75,7 @@ namespace path_processor_detail feature_impl const& feature_; }; - struct to_string_ : util::static_visitor + struct to_string_ { to_string_ (std::string & str) : str_(str) {} @@ -95,7 +95,7 @@ namespace path_processor_detail std::string & str_; }; - struct collect_ : util::static_visitor + struct collect_ { collect_ (std::set & cont) : cont_(cont) {} diff --git a/src/save_map.cpp b/src/save_map.cpp index 28af42cfa..31fe20718 100644 --- a/src/save_map.cpp +++ b/src/save_map.cpp @@ -135,7 +135,7 @@ void serialize_group_symbolizer_properties(ptree & sym_node, bool explicit_defaults); template -class serialize_symbolizer_property : public util::static_visitor<> +class serialize_symbolizer_property { public: serialize_symbolizer_property(Meta const& meta, @@ -225,7 +225,7 @@ private: bool explicit_defaults_; }; -class serialize_symbolizer : public util::static_visitor<> +class serialize_symbolizer { public: serialize_symbolizer( ptree & r , bool explicit_defaults) @@ -255,7 +255,7 @@ private: bool explicit_defaults_; }; -class serialize_group_layout : public util::static_visitor<> +class serialize_group_layout { public: serialize_group_layout(ptree & parent_node, bool explicit_defaults) diff --git a/src/svg/output/process_symbolizers.cpp b/src/svg/output/process_symbolizers.cpp index 3c40f7941..8b57c4fa5 100644 --- a/src/svg/output/process_symbolizers.cpp +++ b/src/svg/output/process_symbolizers.cpp @@ -37,7 +37,7 @@ namespace mapnik { -struct symbol_type_dispatch : public util::static_visitor +struct symbol_type_dispatch { template bool operator()(Symbolizer const&) const diff --git a/src/text/placements/simple.cpp b/src/text/placements/simple.cpp index c365ae403..693b0bacd 100644 --- a/src/text/placements/simple.cpp +++ b/src/text/placements/simple.cpp @@ -169,7 +169,7 @@ text_placements_simple::text_placements_simple(symbolizer_base::value_type const positions_(positions) { } namespace detail { - struct serialize_positions : public util::static_visitor + struct serialize_positions { serialize_positions() {} diff --git a/src/text/properties_util.cpp b/src/text/properties_util.cpp index 873534f1e..ca76efd02 100644 --- a/src/text/properties_util.cpp +++ b/src/text/properties_util.cpp @@ -28,7 +28,7 @@ namespace mapnik { namespace detail { -struct property_serializer : public util::static_visitor<> +struct property_serializer { property_serializer(std::string const& name, boost::property_tree::ptree & node) : name_(name), diff --git a/src/transform_expression.cpp b/src/transform_expression.cpp index 0abba251f..e065ddc7e 100644 --- a/src/transform_expression.cpp +++ b/src/transform_expression.cpp @@ -30,7 +30,7 @@ namespace mapnik { struct transform_node_to_expression_string - : public util::static_visitor + { std::ostringstream& os_; diff --git a/src/warp.cpp b/src/warp.cpp index 787f8a58d..16a81492d 100644 --- a/src/warp.cpp +++ b/src/warp.cpp @@ -158,7 +158,7 @@ MAPNIK_DECL void warp_image (T & target, T const& source, proj_transform const& namespace detail { -struct warp_image_visitor : util::static_visitor +struct warp_image_visitor { warp_image_visitor (raster & target_raster, proj_transform const& prj_trans, box2d const& source_ext, double offset_x, double offset_y, unsigned mesh_size, diff --git a/utils/pgsql2sqlite/sqlite.hpp b/utils/pgsql2sqlite/sqlite.hpp index c16c30ded..64b5b6409 100644 --- a/utils/pgsql2sqlite/sqlite.hpp +++ b/utils/pgsql2sqlite/sqlite.hpp @@ -77,7 +77,7 @@ namespace mapnik { namespace sqlite { class prepared_statement : mapnik::noncopyable { - struct binder : public mapnik::util::static_visitor + struct binder { binder(sqlite3_stmt * stmt, unsigned index) : stmt_(stmt), index_(index) {}