Fix & regenerate sum_avg_portable.cpp

[SVN r20402]
This commit is contained in:
Douglas Gregor
2003-10-17 16:25:51 +00:00
parent 2c708069e8
commit b09e7f3d3d
2 changed files with 2 additions and 2 deletions

View File

@ -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>&lt;void, int[], int, int&amp;, float&amp;&gt; sum_avg;</programlisting> <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>
</entry> </entry>
</row> </row>
</tbody> </tbody>

View File

@ -21,7 +21,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;