is_range.hpp 860 B

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