fix gcc6 compilation issue
This commit is contained in:
parent
8b6059eab6
commit
069de8e266
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue