Quantcast
Channel: User Peter - Reinstate Monica - Stack Overflow
Viewing all articles
Browse latest Browse all 239

Comment by Peter - Reinstate Monica on Why is the memory layout of properties in a C++ class designed to depend on their order?

$
0
0
On architectures that support unaligned memory access, most compilers support an option or pragma to "pack" the structure. But the usual demand is speed over space, and aligned access is usually faster, so that is the default.

Viewing all articles
Browse latest Browse all 239

Trending Articles



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