On 04/28/2017 12:28 PM, Martin Sebor wrote:
Unless it's some other kind of vector, the patch adds a vector member to the class, which makes it not a PoD.(*)
oh, well double ew. Your code is bad and you should feel bad. Write proper member initializers please.
[*] Strictly speaking using memset to initialize pointers to null isn't guaranteed to work on targets where a null pointer isn't all bits clear. I don't know if GCC is meant to build
Such targets are unuseable. I know of one that started like that (xputers), but eventually had to change so that all-bits zero meant NULL. Too much user code exposes that assumption.
nathan -- Nathan Sidwell