Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Is a Union Member's Destructor Called
#include <iostream> #include <string> #include <vector> using namespace std; int main() { union S { string str; vector<int> vec; ~S() {} } s = { "Hello, world"s }; cout << s.str.size() << endl; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
calling conventions and using an override class to change another classes values
Matrix paths right-down only, going through XY
Matrix_1
bool behaviour (convertion/promotion) for logical and artihmetic operators
Struct packing
#30.2
LinkedList
vector destruction - visual studio
unresolved external symbol
kkk
Please log in to post a comment.