Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thunking std::function objects #4

Open
MeanSquaredError opened this issue May 14, 2023 · 2 comments
Open

Thunking std::function objects #4

MeanSquaredError opened this issue May 14, 2023 · 2 comments

Comments

@MeanSquaredError
Copy link

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 MeanSquaredError changed the title Thunking std::function object Thunking std::function objects May 14, 2023
@yiz6688
Copy link

yiz6688 commented Dec 21, 2023

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

@MeanSquaredError
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants