bug5626.cpp 870 B

1234567891011121314151617181920212223242526
  1. /*==============================================================================
  2. Copyright (c) 2005-2010 Joel de Guzman
  3. Copyright (c) 2010 Thomas Heller
  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. #include <utility> // for std::forward used by boost/range in some cases.
  8. #include <boost/range.hpp>
  9. #include <boost/range/irange.hpp>
  10. #include <boost/range/adaptors.hpp>
  11. #include <boost/phoenix.hpp>
  12. #include <boost/detail/lightweight_test.hpp>
  13. using namespace boost::phoenix::arg_names;
  14. using namespace boost::adaptors;
  15. int foo() { return 5; }
  16. int main()
  17. {
  18. BOOST_TEST((*boost::begin(boost::irange(0,5) | transformed( arg1)) == 0));
  19. boost::report_errors();
  20. }