News for hackers. Stuff that matters.
Re:Comparing C and C++ usage and performance with a real wor... by inetknght on Sunday September 03, 2017 @02:36PM (#15163033)
> Member functions are _not_ function pointers that reside inside the struct.

...as long as they're not virtual functions, this is correct. Add a virtual table and this is less correct (but the optimizer may still make it correct if it can prove the types match).

Re:Comparing C and C++ usage and performance with a real wor... by andrepd on Sunday September 03, 2017 @02:42PM (#15163066)
Yes, that is correct, but then again virtual functions give you new functionality, namely dynamic dispatching. Stick with static inheritance and you won't have this overhead.