[Boost-bugs] [Boost C++ Libraries] #5137: any_range : boost/range/concepts.hpp is missing

Subject: [Boost-bugs] [Boost C++ Libraries] #5137: any_range : boost/range/concepts.hpp is missing
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-01-28 00:57:20


#5137: any_range : boost/range/concepts.hpp is missing
-------------------------------------------------------+--------------------
 Reporter: Akira Takahashi <faithandbrave@…> | Owner: neilgroves
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: range
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------------------------+--------------------
 {{{
 #include <boost/range/concepts.hpp>
 }}}
 needs to boost/range/any_range.hpp.
 tried code:
 {{{
 #include <vector>
 #include <boost/assign/list_of.hpp>
 //#include <boost/range/concepts.hpp>
 #include <boost/range/any_range.hpp> // error! concept is nothing!
 #include <boost/range/adaptor/filtered.hpp>
 #include <boost/range/algorithm/for_each.hpp>

 bool is_even(int x) { return x % 2 == 0; }
 void disp(int x) { std::cout << x << std::endl; }

 int main()
 {
     const std::vector<int> v = boost::assign::list_of(1)(2)(3)(4)(5);

     boost::any_range<int, boost::forward_traversal_tag, const int&,
 ptrdiff_t> r = v | boost::adaptors::filtered(is_even);
     boost::for_each(r, disp);
 }
 }}}

 and, any_range template parameter is very many.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5137>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC