Skip to content

Instantly share code, notes, and snippets.

@heatd

heatd/shrd.cpp Secret

Created July 11, 2021 23:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heatd/ba7257477e8324487ba564990a046fb1 to your computer and use it in GitHub Desktop.
Save heatd/ba7257477e8324487ba564990a046fb1 to your computer and use it in GitHub Desktop.
shared_ptr::shared_ptr(shared_ptr& other, T *ptr)
{
this->cblk = other.cblk;
cblk->ref();
this->ptr = ptr;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment