Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
alma
#include <iostream> #include <memory> int main() { std::shared_ptr<int> x{std::make_shared<int>(10)}; std::shared_ptr<int> y{nullptr}; x = y; std::cout << x.get(); // <-- print 0 }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Изволов#7
static_cast makes a copy
шаблонизированное наследование
4
11933
Base conversion
Shorting in one line using class members std and boost bind
005#
Patara asoebi
12535
stackse - search stackoverflow differently
Please log in to post a comment.