Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Struct packing
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> #include <Windows.h> struct Before { bool b1; void* p1; void* p2; UINT u1; bool b2; bool b3; bool b4; bool b5; bool b6; }; struct After { void* p1; void* p2; UINT u1; bool b1; bool b2; bool b3; bool b4; bool b5; bool b6; }; int main() { std::cout << "Before: " << sizeof(Before) << " bytes" << std::endl; std::cout << "After: " << sizeof(After) << " bytes" << std::endl; }
run
|
edit
|
history
|
help
0
enable_if::type
lab1
constexpr internal error
SO typeindex pretty_name
Cannot allocate an array of constant size 0
Type deduction in VC++
Error log b is an undeclared identifier...
GetFinalPathNameByHandle Behaviour
vector of bool
Hangman