Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change algorithms to take predicate by value #37

Open
3 tasks
vinipsmaker opened this issue Jul 25, 2016 · 0 comments
Open
3 tasks

Change algorithms to take predicate by value #37

vinipsmaker opened this issue Jul 25, 2016 · 0 comments

Comments

@vinipsmaker
Copy link
Member

This change will allow predicates with non-const methods like the following one:

struct P
{
  bool operator()(boost::string_ref /*v*/)
  {
    ++c;
  }
  unsigned c = 0;
}

Also, it's the approach used by std::*'s algorithms.

TODO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant