diff --git a/include/mapnik/wkt/wkt_grammar_x3_def.hpp b/include/mapnik/wkt/wkt_grammar_x3_def.hpp index 54b4acfb5..be9bcd0c7 100644 --- a/include/mapnik/wkt/wkt_grammar_x3_def.hpp +++ b/include/mapnik/wkt/wkt_grammar_x3_def.hpp @@ -26,13 +26,16 @@ #include #include -#if defined(__GNUC__) && BOOST_VERSION < 106300 -// instantiate `is_substitute` for reference T and reference Attribute -// fixes gcc6 compilation issue with boost 1_61 and boost_1_62 +#if defined(__GNUC__) +// instantiate `is_substitute` for const reference T and reference Attribute +// fixes gcc6 compilation issue namespace boost { namespace spirit { namespace x3 { namespace traits { -template -struct is_substitute - : is_substitute {}; + +using ring_type = mapnik::geometry::linear_ring; +template <> +struct is_substitute + : is_substitute {}; + }}}} #endif