Opened 12 years ago

Closed 10 years ago

#5229 closed Bugs (fixed)

not a constant reference to a const object (boost::lamda::bind)

Reported by: anonymous Owned by: No-Maintainer
Milestone: To Be Determined Component: lambda
Version: Boost 1.45.0 Severity: Problem
Keywords: Cc:

Description

can't create

std::string&

from

const std::string&

example:

struct A { std::string name; };

std::vector<A> v = ...
std::string to_find = ...
iterator_t found = find_if(v.cbegin(), v.cend(), to_find == bind(&A::name, _1));

v.cbegin(), v.cend() - const_iterator's

Change History (1)

comment:1 by Steven Watanabe, 10 years ago

Resolution: fixed
Status: newclosed

This was fixed in [67640].

Note: See TracTickets for help on using tickets.