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