sylveon / member_thunk

Dynamically creates executable code to allow C callbacks to call C++ member functions without the need for a user data parameter
MIT License
13 stars 2 forks source link

Allow passing a const pointer when passing a const member function type #19

Closed sylveon closed 4 years ago

sylveon commented 4 years ago

Currently, member_thunk::create requires a const_cast if you pass a const function and a const this pointer.