Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
vector destruction - clang
//clang #include <iostream> #include <vector> struct A{ A(int i):i_(i){} ~A(){ std::cout << i_ << std::endl; } int i_; }; int main() { std::vector<A> a({0,1,2,3,4,5}); std::cout << "Destroy a " << std::endl; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
What's the problem with this?
Access namespace by unqualified manner
Unpacking tuple
overloadresolution
ArrayList
illegal instruction (SIGILL)
test
First
HerbSutter-Virtuality
vf
Please log in to post a comment.