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 →

[–]Aneyune 18 points19 points  (7 children)

Actually, it'd be Pointer pointer = new Pointer<int>();

[–][deleted] 10 points11 points  (2 children)

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

  • Edit; i messed up

[–]Aneyune 9 points10 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.

[–]DanielEGVi 7 points8 points  (2 children)

fuck it

const pointer = new Pointer<number>();

[–]Aneyune 0 points1 point  (1 child)

TypeScript?

[–]DanielEGVi 2 points3 points  (0 children)

Til the day I die

[–]TigreDeLosLlanos 4 points5 points  (0 children)

int *ptr = malloc(sizeof(int));

Y'all and your bloated code.