From b3a347c67804931edbeefc3243330a9d4477d871 Mon Sep 17 00:00:00 2001 From: artemp Date: Mon, 22 Aug 2016 12:14:41 +0100 Subject: [PATCH] mapnik::variant - use `std::tuple` instead of `mpl::vector` and remove Boost.MPL dependency --- include/mapnik/config.hpp | 14 -------------- include/mapnik/util/variant.hpp | 5 ++--- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/include/mapnik/config.hpp b/include/mapnik/config.hpp index a05caf9d4..a9168e59f 100644 --- a/include/mapnik/config.hpp +++ b/include/mapnik/config.hpp @@ -52,18 +52,4 @@ #define PROJ_ENVELOPE_POINTS 20 -#define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS - -#ifndef BOOST_MPL_LIMIT_VECTOR_SIZE - #define BOOST_MPL_LIMIT_VECTOR_SIZE 30 -#else - #warning "WARNING: BOOST_MPL_LIMIT_VECTOR_SIZE is already defined. Ensure config.hpp is included before any Boost headers" -#endif - -#ifndef BOOST_MPL_LIMIT_LIST_SIZE - #define BOOST_MPL_LIMIT_LIST_SIZE 30 -#else - #warning "WARNING: BOOST_MPL_LIMIT_LIST_SIZE is already defined. Ensure config.hpp is included before any Boost headers" -#endif - #endif // MAPNIK_CONFIG_HPP diff --git a/include/mapnik/util/variant.hpp b/include/mapnik/util/variant.hpp index 87cfb70ff..6c2d21b3e 100644 --- a/include/mapnik/util/variant.hpp +++ b/include/mapnik/util/variant.hpp @@ -28,7 +28,7 @@ #pragma GCC diagnostic push #include -#include // spirit support +#include // spirit support #pragma GCC diagnostic pop namespace mapnik { namespace util { @@ -36,14 +36,13 @@ namespace mapnik { namespace util { 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 = boost::mpl::vector; + using types = std::tuple; // inherit ctor's using mapbox::util::variant::variant; };