1 #define INC_FUNCTIONAL 1
2 #define USE_STATIC_CAST 1
10 template<class R> int p( int val, R& r )
15 template<class R> void f( vector<R>& v )
17 #ifdef USE_STATIC_CAST
18 accumulate( v.begin(), v.end(), 0, static_cast<int (*)(int, R&)>(p) );
20 accumulate( v.begin(), v.end(), 0, p<R> );