Manak
2.0.0
|
With overloaded templatized functions the template substitution becomes ambiguous. To remove this ambiguity in case of templatized functions specific template signature must be given.
In case of overloaded functions, a static cast has to be used to determine the correct signature.
Static class functions can be directly passed.
The use of non static members is little complex. Manak provides a useful function manak::utils::BindToObject for that. This function accepts class member function pointer as first argument and pointer to class object as second and returns a non class member function which can be directly passed to any macro.
With manual registration -
In this case it is important to assign memory in heap as the actual call to this registered function happens after the execution of initialization.
With auto registration -