| 1 | /*============================================================================= |
| 2 | Copyright (c) 2001-2014 Joel de Guzman |
| 3 | http://spirit.sourceforge.net/ |
| 4 | |
| 5 | Distributed under the Boost Software License, Version 1.0. (See accompanying |
| 6 | file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 7 | =============================================================================*/ |
| 8 | #if !defined(BOOST_SPIRIT_X3_IS_RANGE_DEC_06_2017_1900PM) |
| 9 | #define BOOST_SPIRIT_X3_IS_RANGE_DEC_06_2017_1900PM |
| 10 | |
| 11 | #include <boost/range/range_fwd.hpp> |
| 12 | #include <boost/mpl/bool.hpp> |
| 13 | |
| 14 | namespace boost { namespace spirit { namespace x3 { namespace traits |
| 15 | { |
| 16 | template <typename T, typename Enable = void> |
| 17 | struct is_range |
| 18 | : mpl::false_ |
| 19 | {}; |
| 20 | |
| 21 | template <typename T> |
| 22 | struct is_range<boost::iterator_range<T>> |
| 23 | : mpl::true_ |
| 24 | {}; |
| 25 | }}}} |
| 26 | |
| 27 | #endif |
| 28 | |