From cb3c1b0d1e6da57f9bd71a1ebcfacf3d7c769a7e Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 16 Jul 2003 04:40:25 +0000 Subject: [PATCH] doc/tutorial.xml: fix a typo in the example code (thanks Jens!) test/sum_avg_portable.cpp: regenerated. [SVN r19136] --- doc/tutorial.xml | 2 +- test/sum_avg_portable.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/tutorial.xml b/doc/tutorial.xml index e1f8337..3859009 100644 --- a/doc/tutorial.xml +++ b/doc/tutorial.xml @@ -130,7 +130,7 @@ CopyConstructible, so we can even use references and arrays: -boost::function4<void, int[], int, int&, float> sum_avg; +boost::function4<void, int[], int, int&, float&> sum_avg; diff --git a/test/sum_avg_portable.cpp b/test/sum_avg_portable.cpp index e31595e..fe73be8 100644 --- a/test/sum_avg_portable.cpp +++ b/test/sum_avg_portable.cpp @@ -25,7 +25,7 @@ void do_sum_avg(int values[], int n, int& sum, float& avg) } int main() { - boost::function4 sum_avg; + boost::function4 sum_avg; sum_avg = &do_sum_avg; return 0;