I\'ve recently came across this strange function in some class:
void* getThis() {return this;}
And later in the code it is sometimes used like
I ran across something like this many (many many) years ago. If I recall correctly, it was needed when a class is manipulating other instances of the same class. One example might be a container class that can contain its own type/(class?).