From 253820efa26aeed8ffd101aeb486969e83d036f9 Mon Sep 17 00:00:00 2001 From: frieddan Date: Fri, 14 Oct 2016 13:43:58 +0200 Subject: [PATCH] FEATURE: add include check to force user to maintain include order --- mapbox/boost_spirit_karma.hpp | 11 +++++++++++ mapbox/boost_spirit_qi.hpp | 10 ++++++++++ 2 files changed, 21 insertions(+) diff --git a/mapbox/boost_spirit_karma.hpp b/mapbox/boost_spirit_karma.hpp index 0a5fbf1..eb732e2 100644 --- a/mapbox/boost_spirit_karma.hpp +++ b/mapbox/boost_spirit_karma.hpp @@ -5,10 +5,21 @@ #ifndef MAPBOX_BOOST_SPIRIT_KARMA_HPP #define MAPBOX_BOOST_SPIRIT_KARMA_HPP + +#ifdef BOOST_SPIRIT_GENERATOR_JANUARY_13_2009_1002AM + #error "ERROR file must be included before boost spirit karma" +#endif + + #include namespace boost { using mapbox::util::get; } #include +#include + +#ifndef BOOST_SPIRIT_GENERATOR_JANUARY_13_2009_1002AM + #error "ERROR include guard for boost spirit karma has changed!" +#endif #endif diff --git a/mapbox/boost_spirit_qi.hpp b/mapbox/boost_spirit_qi.hpp index 8a0b019..decbf83 100644 --- a/mapbox/boost_spirit_qi.hpp +++ b/mapbox/boost_spirit_qi.hpp @@ -5,6 +5,11 @@ #ifndef MAPBOX_BOOST_SPIRIT_QI_HPP #define MAPBOX_BOOST_SPIRIT_QI_HPP + +#ifdef BOOST_SPIRIT_PARSER_OCTOBER_16_2008_0254PM + #error "ERROR file must be included before boost spirit qi" +#endif + #include #include @@ -22,4 +27,9 @@ namespace boost { namespace spirit { namespace qi { namespace detail }}}} +#include +#ifndef BOOST_SPIRIT_PARSER_OCTOBER_16_2008_0254PM + #error "ERROR include guard for boost spirit qi has changed!" +#endif + #endif