diff --git a/include/mapnik/wkt/wkt_grammar_x3_def.hpp b/include/mapnik/wkt/wkt_grammar_x3_def.hpp index b4bff5e38..db44a4ce4 100644 --- a/include/mapnik/wkt/wkt_grammar_x3_def.hpp +++ b/include/mapnik/wkt/wkt_grammar_x3_def.hpp @@ -26,6 +26,16 @@ #include #include +#ifdef __GNUC__ +// instantiate `is_substitute` for reference T and reference Attribute +// fixes gcc6 compilation issue +namespace boost { namespace spirit { namespace x3 { namespace traits { +template +struct is_substitute + : is_substitute {}; +}}}} +#endif + namespace mapnik { namespace grammar { namespace x3 = boost::spirit::x3;