call_thunk icon indicating copy to clipboard operation
call_thunk copied to clipboard

Thunking std::function objects

Open MeanSquaredError opened this issue 1 year ago • 2 comments

Thank you for the useful library.

Not really an issue, just an observation that with C++11 and templates the library can be expanded to allow thunks to arbitrary std::function objects.

MeanSquaredError avatar May 14 '23 12:05 MeanSquaredError

Thank you for the useful library.

Not really an issue, just an observation that with C++11 and templates the library can be expanded to allow thunks to arbitrary std::function objects.

std::function can not convert to c style function you have to pass this pointer yourself

yiz6688 avatar Dec 21 '23 07:12 yiz6688

@yiz6688 std::function does not need to convert to a C-style function. The purpose of the thunking library is to perform that conversion.

MeanSquaredError avatar Dec 21 '23 10:12 MeanSquaredError