From 18f1b168724987817d4445e0b9f0a581625b6e7a Mon Sep 17 00:00:00 2001
From: Peter Dimov
-template<class It, class R> void for_each(It first, It last, R (*pmf) ()) +template<class It, class R, class T> void for_each(It first, It last, R (T::*pmf) ()) { std::for_each(first, last, boost::mem_fn(pmf)); } @@ -93,7 +93,7 @@ that will allow the convenient syntax: When documenting the feature, the library author will simply state: -template<class It, class R> void for_each(It first, It last, R (*pmf) ());
+template<class It, class R, class T> void for_each(It first, It last, R (T::*pmf) ());
Effects: equivalent to std::for_each(first, last, boost::mem_fn(pmf));