From 2374cc05db402e513190de2638abc2ad052ca4c7 Mon Sep 17 00:00:00 2001 From: Lukasz Czajczyk Date: Tue, 1 Dec 2020 12:56:54 +0100 Subject: [PATCH] Corrected examples Those examples seem to work only with &_1. Tested with Boost 1.73 and GCC 10. Also could you provide examples how calling a method should work in for_each case? ->* seems to work for member but not for method. --- doc/detail/lambda_doc.xml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/doc/detail/lambda_doc.xml b/doc/detail/lambda_doc.xml index b07c36dc..f4e07744 100644 --- a/doc/detail/lambda_doc.xml +++ b/doc/detail/lambda_doc.xml @@ -7,7 +7,7 @@ Jaakko - Järvi + Järvi jarvi at cs tamu edu @@ -18,7 +18,7 @@ 2002 2003 2004 - Jaakko Järvi + Jaakko Järvi Gary Powell @@ -76,7 +76,7 @@ In explaining what the library is about, a line of code says more than a thousan must be on the include path. There are a number of include files that give different functionality: - + @@ -911,9 +911,9 @@ B* b = new B(); // a function argument list must follow (b ->* &B::foo)(1) // ok, calls b->foo(1) -(_1 ->* &B::foo)(b); // returns a delayed call to b->foo, +(&_1 ->* &B::foo)(b); // returns a delayed call to b->foo, // no effect as such -(_1 ->* &B::foo)(b)(1); // calls b->foo(1)]]> +(&_1 ->* &B::foo)(b)(1); // calls b->foo(1)]]> @@ -3176,7 +3176,7 @@ but not compromise the performance of simple lambda functors.
Contributors -The main body of the library was written by Jaakko Järvi and Gary Powell. +The main body of the library was written by Jaakko Järvi and Gary Powell. We've got outside help, suggestions and ideas from Jeremy Siek, Peter Higley, Peter Dimov, Valentin Bonnard, William Kempf. We would particularly like to mention Joel de Guzmann and his work with Phoenix which has influenced BLL significantly, making it considerably simpler @@ -3294,11 +3294,11 @@ was dropped. -Jär99 +Jär99 -Järvi +Järvi Jaakko C++ Function Object Binders Made Easy @@ -3314,9 +3314,9 @@ was dropped. -Jär00 +Jär00 -Järvi +Järvi Jaakko @@ -3335,9 +3335,9 @@ was dropped. -Jär01 +Jär01 -Järvi +Järvi Jaakko @@ -3354,12 +3354,12 @@ was dropped. -Jär03 +Jär03 -Järvi +Järvi Jaakko