Quantcast
Channel: User Peter - Reinstate Monica - Stack Overflow
Viewing all articles
Browse latest Browse all 223

Comment by Peter - Reinstate Monica on C++: Use free function as member function

$
0
0
@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.)

Viewing all articles
Browse latest Browse all 223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>