I'm trying to make this code compile:
typedef void (*func_ptr)();
boost::function<void()> bf;
func_ptr fp = [bf] { bf(); };
Visual Studio 2015 complains that no suitable conversion from lambda []void()->void
to void (*const)()
exists.
What am I missing?