sum_avg.cpp:

- Portability fix for GCC


[SVN r12464]
This commit is contained in:
Douglas Gregor
2002-01-23 18:24:58 +00:00
parent 58656b40b1
commit 8e123d2a97

View File

@ -27,7 +27,9 @@ void do_sum_avg(int values[], int n, int& sum, float& avg)
int int
main() main()
{ {
boost::function<void, int[], int, int&, float&> sum_avg; // The second parameter should be int[], but some compilers (e.g., GCC)
// complain about this
boost::function<void, int*, int, int&, float&> sum_avg;
sum_avg = &do_sum_avg; sum_avg = &do_sum_avg;