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