diff --git a/bind.html b/bind.html index d06d707..d08cdd2 100644 --- a/bind.html +++ b/bind.html @@ -272,7 +272,7 @@ bind(&X::f, p, _1)(i); // (internal copy of p)->f(i)

This feature of bind can be used to perform function composition. See bind_as_compose.cpp for an example that demonstrates how to use bind - to achieve similar functionality to Boost.Compose. + to achieve similar functionality to Boost.Compose.

Note that the first argument - the bound function object - is not evaluated, even when it's a function object that is produced by bind or a diff --git a/mem_fn.html b/mem_fn.html index b54f906..0e9eb12 100644 --- a/mem_fn.html +++ b/mem_fn.html @@ -145,7 +145,7 @@ void k(std::vector<boost::shared_ptr<X> > const & v)

Yes. For simple uses, mem_fn provides additional functionality that the standard adaptors do not. Complicated expressions that use std::bind1st, std::bind2nd - or Boost.Compose along with the + or Boost.Compose along with the standard adaptors can be rewritten using boost::bind that automatically takes advantage of mem_fn.