I am trying to pass a lambda expression to a function that takes a function pointer, is this even possible?
Here is some sample code, I\'m using VS2010:
You can use std::function for this:
std::function
void fptrfunc(std::function fun, int j) { fun(j); }
Or go completely generic:
template void fptrfunc(Fun fun, int j) { fun(j); }