Ticket #5137 (closed Bugs: fixed)

Opened 6 years ago

Last modified 6 years ago

any_range : boost/range/concepts.hpp is missing

Reported by: Akira Takahashi <faithandbrave@…> Owned by: neilgroves
Milestone: To Be Determined Component: range
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:


#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.


Change History

comment:1 Changed 6 years ago by Akira Takahashi <faithandbrave@…>

sorry, compile successful in rev.68177.

comment:2 Changed 6 years ago by neilgroves

  • Status changed from new to closed
  • Resolution set to fixed

Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.