From 069de8e266d0f68f1330e42f9340ed84c6622b6a Mon Sep 17 00:00:00 2001 From: artemp Date: Fri, 2 Dec 2016 11:04:11 +0100 Subject: [PATCH] fix gcc6 compilation issue --- include/mapnik/wkt/wkt_grammar_x3_def.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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;