fix gcc6 compilation issue

This commit is contained in:
artemp 2016-12-02 11:04:11 +01:00
parent 8b6059eab6
commit 069de8e266

View file

@ -26,6 +26,16 @@
#include <mapnik/wkt/wkt_grammar_x3.hpp> #include <mapnik/wkt/wkt_grammar_x3.hpp>
#include <mapnik/geometry/fusion_adapted.hpp> #include <mapnik/geometry/fusion_adapted.hpp>
#ifdef __GNUC__
// instantiate `is_substitute` for reference T and reference Attribute
// fixes gcc6 compilation issue
namespace boost { namespace spirit { namespace x3 { namespace traits {
template <typename T, typename Attribute, typename Enable>
struct is_substitute<T&, Attribute&, Enable>
: is_substitute<T, Attribute, Enable> {};
}}}}
#endif
namespace mapnik { namespace grammar { namespace mapnik { namespace grammar {
namespace x3 = boost::spirit::x3; namespace x3 = boost::spirit::x3;