Answer by user17732522 for Would overwriting a polymorphic object...
I'm assuming that due to the question When is a type in c++11 allowed to be memcpyed?, this is invalid behavior. However, I'm not 100% sure, either.Exactly.Your class is not trivially-copyable due to...
View ArticleWould overwriting a polymorphic object byte-by-byte in memory ever be valid...
This is more of a 'what if' question than a practical one. Assume that I allocate some polymorphic objects in such a way that the allocator always reserves enough room for the largest object. I want to...
View Article
More Pages to Explore .....