Skip to content

Commit 253820e

Browse files
author
frieddan
committed
FEATURE: add include check to force user to maintain include order
1 parent 59a6797 commit 253820e

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

mapbox/boost_spirit_karma.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,21 @@
55
#ifndef MAPBOX_BOOST_SPIRIT_KARMA_HPP
66
#define MAPBOX_BOOST_SPIRIT_KARMA_HPP
77

8+
9+
#ifdef BOOST_SPIRIT_GENERATOR_JANUARY_13_2009_1002AM
10+
#error "ERROR file must be included before boost spirit karma"
11+
#endif
12+
13+
814
#include <mapbox/variant.hpp>
915

1016
namespace boost { using mapbox::util::get; }
1117

1218
#include <mapbox/detail/boost_spirit_attributes.hpp>
19+
#include <boost/spirit/include/karma.hpp>
20+
21+
#ifndef BOOST_SPIRIT_GENERATOR_JANUARY_13_2009_1002AM
22+
#error "ERROR include guard for boost spirit karma has changed!"
23+
#endif
1324

1425
#endif

mapbox/boost_spirit_qi.hpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
#ifndef MAPBOX_BOOST_SPIRIT_QI_HPP
66
#define MAPBOX_BOOST_SPIRIT_QI_HPP
77

8+
9+
#ifdef BOOST_SPIRIT_PARSER_OCTOBER_16_2008_0254PM
10+
#error "ERROR file must be included before boost spirit qi"
11+
#endif
12+
813
#include <mapbox/detail/boost_spirit_attributes.hpp>
914

1015
#include <boost/spirit/include/qi_alternative.hpp>
@@ -22,4 +27,9 @@ namespace boost { namespace spirit { namespace qi { namespace detail
2227
}}}}
2328

2429

30+
#include <boost/spirit/include/qi.hpp>
31+
#ifndef BOOST_SPIRIT_PARSER_OCTOBER_16_2008_0254PM
32+
#error "ERROR include guard for boost spirit qi has changed!"
33+
#endif
34+
2535
#endif

0 commit comments

Comments
 (0)