Converting C++ capturing lambda to function pointer, the generic way
Currently I use the following code to convert a capturing lambda to a function pointer for C-style APIs:
Currently I use the following code to convert a capturing lambda to a function pointer for C-style APIs: