Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 1311

Comment by HolyBlackCat on Is padding important when calling to placement new?

$
0
0
I don't think it's allowed to touch the padding, since the struct is trivially-constructible. But it may or may not be formally UB, I'm not sure (probably harmless in practice). I'm more worried about the structs being misaligned, but I think it should be ok too on most platforms?

Viewing all articles
Browse latest Browse all 1311

Trending Articles



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