Torque 3D 3.8
ClosurePtr::bindconstmemfunc Method
template < class X, class XMemFunc> inline void bindconstmemfunc(const X * pthis, XMemFunc function_to_bind);

For const member functions, we only need a const class pointer. Since we know that the member function is const, it's safe to remove the const qualifier from the 'this' pointer with a const_cast. VC6 has problems if we just overload 'bindmemfunc', so we give it a different name.

Copyright (c) 2015. All rights reserved.
What do you think about this topic? Send feedback!