Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=12d98380e7bdabefee0b0d90f972e7eb608c6660
commit 12d98380e7bdabefee0b0d90f972e7eb608c6660 Author: Michel Hermier <[email protected]> Date: Mon Oct 27 07:40:04 2014 +0100 libpacman: Fix flib::find. diff --git a/lib/libpacman/util/falgorithm.h b/lib/libpacman/util/falgorithm.h index b6e4b24..28b2801 100644 --- a/lib/libpacman/util/falgorithm.h +++ b/lib/libpacman/util/falgorithm.h @@ -68,8 +68,8 @@ namespace flib template <class InputIterator, class T> InputIterator find(InputIterator first, InputIterator last, const T &val) { - return find(first, last, - [&] (const typename InputIterator::reference o) -> bool + return find_if(first, last, + [&] (const typename InputIterator::value_type &o) -> bool { return o == val; }); } _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
