diff --git a/doc/tutorial.xml b/doc/tutorial.xml index 38590094..2b9d06d8 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 bc30dedc..d1687e30 100644 --- a/test/sum_avg_portable.cpp +++ b/test/sum_avg_portable.cpp @@ -21,7 +21,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;