diff --git a/doc/tutorial.xml b/doc/tutorial.xml index 0f011e4..6f039f1 100644 --- a/doc/tutorial.xml +++ b/doc/tutorial.xml @@ -248,17 +248,17 @@ f(&x, 5); boost::function<int (int)> f; - X x; - f = std::bind1st( - std::mem_fun(&X::foo), &x); - f(5); // Call x.foo(5) +X x; +f = std::bind1st( + std::mem_fun(&X::foo), &x); +f(5); // Call x.foo(5) boost::function1<int, int> f; - X x; - f = std::bind1st( - std::mem_fun(&X::foo), &x); - f(5); // Call x.foo(5) +X x; +f = std::bind1st( + std::mem_fun(&X::foo), &x); +f(5); // Call x.foo(5) @@ -293,18 +293,18 @@ f(&x, 5); - stateful_type a_function_object; - boost::function<int (int)> f; - f = boost::ref(a_function_object); +stateful_type a_function_object; +boost::function<int (int)> f; +f = boost::ref(a_function_object); - boost::function<int (int)> f2(f); +boost::function<int (int)> f2(f); - stateful_type a_function_object; - boost::function1<int, int> f; - f = boost::ref(a_function_object); +stateful_type a_function_object; +boost::function1<int, int> f; +f = boost::ref(a_function_object); - boost::function1<int, int> f2(f); +boost::function1<int, int> f2(f);