Boost logo

Boost Users :

From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2006-07-11 16:40:34


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



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net