Run Code
|
API
|
Code Wall
|
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
Wrong type deduction of std::valarray expression
CIS-2207 Week1 Assignment1 Company Devisions
karma legacy "variant" with attr_cast
Visual C++ template instantiation
cross-platform sleep function
multiplie linked list numbers
Error with move capture of a const ref in a lambda function
fun
hangman
dharmesh