Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
EBO
//clang 3.7.0 #include <iostream> struct Empty{}; struct A : Empty { int a; }; struct B { int b; Empty e; }; int main() { std::cout << "sizeof(A)=" << sizeof(A) << std::endl; //4 EBO std::cout << "sizeof(B)=" << sizeof(B) << std::endl; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Optional conversions
Variable declarations in while loop conditions are also C++-only.
test C++ register
MY FIRST OBJECT ORIENTED PROGRAM
K combinator - Lazy evaluation
Maze problem solution
34534
cv5_class
pointer to complete array does not convert implicitly to pointer to array of unknown bound
constructor-is-not-called-in-this-aggregation-class
Please log in to post a comment.