forked from boostorg/function
doc/tutorial.xml: fix a typo in the example code (thanks Jens!)
test/sum_avg_portable.cpp: regenerated. [SVN r19136]
This commit is contained in:
1 parent
1a6d95733a
commit
cb3c1b0d1e
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -130,7 +130,7 @@ CopyConstructible, so we can even use references and arrays:
|
|||||||
<tbody>
|
<tbody>
|
||||||
<row>
|
<row>
|
||||||
<entry>
|
<entry>
|
||||||
<programlisting name="function.tutorial.sum_avg_decl.portable"><classname alt="functionN">boost::function4</classname><void, int[], int, int&, float> sum_avg;</programlisting>
|
<programlisting name="function.tutorial.sum_avg_decl.portable"><classname alt="functionN">boost::function4</classname><void, int[], int, int&, float&> sum_avg;</programlisting>
|
||||||
</entry>
|
</entry>
|
||||||
</row>
|
</row>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ void do_sum_avg(int values[], int n, int& sum, float& avg)
|
|||||||
}
|
}
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
boost::function4<void, int[], int, int&, float> sum_avg;
|
boost::function4<void, int[], int, int&, float&> sum_avg;
|
||||||
sum_avg = &do_sum_avg;
|
sum_avg = &do_sum_avg;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in new issue
Block a user