I was wondering if the Continuation handler member function pointer would
work right if 'Continuation' was not the first base class.  It turns out
that C++ does really cool stuff if you static_cast from a derived class
member function pointer to a base class member function pointer.  It even
works if the derived class member function pointer points to a virtual
function.

https://godbolt.org/z/iWn8tM

In TS code we use a C-style cast when setting the continuation handler.
But C-style cast will always be interpreted as a static_cast over a
reinterpret_cast when a static_cast would be valid.

Reply via email to