@RemyLebeau Yes, on the language level; but not on the object file level, which is what the OP tries to exploit. If you knew the name mangling scheme I suppose you could write a free function (perhaps using assembler for the symbol name to avoid the compiler's mangling) that happily links as a member function. (The caller would still need to see that member in the class declaration though.)
↧