Skip to content

Commit 4bcfd89

Browse files
committed
Added a workaround for the missing MPL includes in Range.
This is a temporary workaround until Boost.Range is fixed by: boostorg/range#154
1 parent ea94263 commit 4bcfd89

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/range_distance_compat_test.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7+
// The following Boost.MPL includes are needed to mitigate the missing includes in Boost.Range.
8+
// They can be removed once https://github.com/boostorg/range/pull/154 is merged.
9+
// -- Begin workaround includes
10+
#include <boost/mpl/assert.hpp>
11+
#include <boost/mpl/eval_if.hpp>
12+
#include <boost/mpl/and.hpp>
13+
#include <boost/mpl/identity.hpp>
14+
// -- End of workaround includes
15+
716
#include <boost/range/distance.hpp>
817
#include <boost/range/iterator_range_core.hpp>
918
#include <boost/iterator/distance.hpp>

0 commit comments

Comments
 (0)