Quantcast
Channel: The Old New Thing
Viewing all articles
Browse latest Browse all 24428

re: I'm not calling a virtual function from my constructor or destructor, but I'm still getting a __purecall error

$
0
0

Note that in debug builds the runtime already overwrites freed dynamic memory with `0xdd` bytes (which is even better than setting the memory to zero). I don't think the compiler does anything similar for automatic objects that go out of scope (though newer ones can fill uninitialized locals with `0xcc`) .  There might be value in that, but it's unclear to me how much bang for buck you'd get.


Viewing all articles
Browse latest Browse all 24428

Trending Articles



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