News for hackers. Stuff that matters.
Re:C++ on Embedded Systems by pandaman on Tuesday February 21, 2017 @02:57AM (#13694077)
To be honest, a derived class already cannot be a POD. But stuffing the vtable pointer into any derived class is indeed wasteful for embedded programming and opens another way to exploit your system (if you care about security) by leaving code pointers at the fixed addresses in r/w memory.
Re:C++ on Embedded Systems by gpderetta on Tuesday February 21, 2017 @05:06AM (#13694546)
it can still be standard layout (the 'new' POD for all intents and purposes) if either the base or the derived class is empty.

/pedantic