Skip to content

Commit b09e7f3

Browse files
committed
Fix & regenerate sum_avg_portable.cpp
[SVN r20402]
1 parent 2c70806 commit b09e7f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/tutorial.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ CopyConstructible, so we can even use references and arrays:
130130
<tbody>
131131
<row>
132132
<entry>
133-
<programlisting name="function.tutorial.sum_avg_decl.portable"><classname alt="functionN">boost::function4</classname>&lt;void, int[], int, int&amp;, float&amp;&gt; sum_avg;</programlisting>
133+
<programlisting name="function.tutorial.sum_avg_decl.portable"><classname alt="functionN">boost::function4</classname>&lt;void, int*, int, int&amp;, float&amp;&gt; sum_avg;</programlisting>
134134
</entry>
135135
</row>
136136
</tbody>

test/sum_avg_portable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void do_sum_avg(int values[], int n, int& sum, float& avg)
2121
}
2222
int main()
2323
{
24-
boost::function4<void, int[], int, int&, float&> sum_avg;
24+
boost::function4<void, int*, int, int&, float&> sum_avg;
2525
sum_avg = &do_sum_avg;
2626

2727
return 0;

0 commit comments

Comments
 (0)