Fix warnings

This commit is contained in:
momo5502
2024-09-24 20:17:38 +02:00
parent 0d2cccee50
commit 136ff118d4
7 changed files with 21 additions and 32 deletions

View File

@@ -18,7 +18,7 @@ public:
{
}
c_function_type* get_function() const
c_function_type* get_c_function() const
{
return +[](Args... args, user_data_pointer user_data) -> ReturnType
{
@@ -26,6 +26,11 @@ public:
};
}
void* get_function() const
{
return reinterpret_cast<void*>(this->get_c_function());
}
user_data_pointer get_user_data() const
{
return this->functor_.get();