Be more generic. Use a template parameter for the entire function parameter. Then you can pass function-like objects ("functors") and C++0x lambdas instead of normal functions if you want to.
Be more generic. Use a template parameter for the entire function parameter. Then you can pass function-like objects ("functors") and C++0x lambdas instead of normal functions if you want to.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law