10#ifndef INKSCAPE_UTIL_CALLBACK_CONVERTER_H
11#define INKSCAPE_UTIL_CALLBACK_CONVERTER_H
24 template <
typename Ret,
typename Obj,
typename... Args>
28 static constexpr auto result = +[] (Args... args,
void *
data) -> Ret {
29 return (
reinterpret_cast<Obj*
>(
data)->*Fp)(std::forward<Args>(args)...);
Miscellaneous supporting code.
constexpr auto make_c_callback
Given a member function, make_c_callback produces a pure function with an extra void* argument at the...
auto make_g_callback
A worse version of make_c_callback that also casts the result to a GCallback, losing even more type-s...
static constexpr auto result