Generic callbacks
- by bobobobo
Extends
So, I'm trying to learn template metaprogramming better and I figure this is a good exercise for it.
I'm trying to write code that can callback a function with any number of arguments I like passed to it.
// First function to call
int add( int x, int y ) ;
// Second function to call
double square( double x ) ;
// Third func to call…