[lamba] typo in lambda docs

Hi guys, I'm forwarding this from the users list. It may easily get unnoticed there, the more so considering it has a very generic subject. --------------------------------------------------------- On Tue, 11 Jul 2006 22:40:34 +0200, "Ovanes Markarian" <om_boost@keywallet.com> wrote:
Hi!
there is currently a bug in boost::lambda documentation ( <http://www.boost.org/doc/html/lambda/s03.html> http://www.boost.org/doc/html/lambda/s03.html).
Current version:
template <class T> : public binary_function<T, T, T> struct plus { T operator()(const T& i, const T& j) const { return i + j; } }; should be:
template <class T> struct plus : public binary_function<T, T, T>
{
T operator()(const T& i, const T& j) const {
return i + j;
}
};
With Kind Regards, Ovanes
-- [ Gennaro Prota, C++ developer for hire ] [ resume: available on request ]
participants (1)
-
Gennaro Prota