std_tuple_iterator.cpp 846 B

1234567891011121314151617181920212223242526
  1. /*=============================================================================
  2. Copyright (c) 2001-2011 Joel de Guzman
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. ==============================================================================*/
  6. #include <boost/config.hpp>
  7. // The std_tuple_iterator adaptor only supports implementations
  8. // using variadic templates
  9. #if defined(BOOST_NO_CXX11_HDR_TUPLE) || \
  10. defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
  11. # error "does not meet requirements"
  12. #endif
  13. #include <boost/fusion/adapted/std_tuple.hpp>
  14. #define FUSION_SEQUENCE std::tuple
  15. #define FUSION_TRAVERSAL_TAG random_access_traversal_tag
  16. #include "./iterator.hpp"
  17. int main()
  18. {
  19. test();
  20. return boost::report_errors();
  21. }