From 4d4ea3a5766aba018e783fc1375a762a999a9894 Mon Sep 17 00:00:00 2001 From: artemp Date: Fri, 23 Sep 2016 16:01:07 +0200 Subject: [PATCH] Fix clang >= 3.9.0 compilation by using `mapbox::util::variant` as alias (via deps/mapbox/variant => "types" branch) --- include/mapnik/util/variant.hpp | 10 +--------- src/save_map.cpp | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/include/mapnik/util/variant.hpp b/include/mapnik/util/variant.hpp index 27993ce3f..b73533d71 100644 --- a/include/mapnik/util/variant.hpp +++ b/include/mapnik/util/variant.hpp @@ -32,15 +32,7 @@ template using recursive_wrapper = typename mapbox::util::recursive_wrapper; template -class variant : public mapbox::util::variant -{ -public: - // tell spirit that this is an adapted variant - struct adapted_variant_tag; - using types = std::tuple; - // inherit ctor's - using mapbox::util::variant::variant; -}; +using variant = typename mapbox::util::variant; // unary visitor interface // const diff --git a/src/save_map.cpp b/src/save_map.cpp index f3d89153c..882d795f9 100644 --- a/src/save_map.cpp +++ b/src/save_map.cpp @@ -46,7 +46,7 @@ #include #include #include -#include +#include #pragma GCC diagnostic push #include #include