From dd67e3f7855d554730f21c0eb57f832ae0d4cc8c Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sun, 15 Dec 2013 17:27:54 +0000 Subject: [PATCH] Link to compose from old version of boost. Compose isn't included in modular boost, so there's nothing to link to. I changed it to link to an old version which still has compose documentation. It might be better to rewrite it? --- bind.html | 2 +- mem_fn.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.