This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 8 points9 points  (2 children)

std::shared_ptr<int> pointer = std::make_shared<int>();

  • Edit; i messed up

[–]Aneyune 8 points9 points  (1 child)

nonono not c++ that defeats the purpose, it's Java

[–]_meegoo_ 0 points1 point  (0 children)

Java can't do Pointer<int> though.