mirror of
https://github.com/boostorg/function.git
synced 2025-07-29 12:27:15 +02:00
sum_avg.cpp:
- Portability fix for GCC [SVN r12464]
This commit is contained in:
@ -27,7 +27,9 @@ void do_sum_avg(int values[], int n, int& sum, float& avg)
|
||||
int
|
||||
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;
|
||||
|
||||
|
Reference in New Issue
Block a user