Skip to content

Instantly share code, notes, and snippets.

@Momellouky
Created March 1, 2022 10:07
Show Gist options
  • Save Momellouky/dc537b176edc5f146550dbc9385f3abe to your computer and use it in GitHub Desktop.
Save Momellouky/dc537b176edc5f146550dbc9385f3abe to your computer and use it in GitHub Desktop.
std::shared_ptr<Type> sp;
Type* ptr = new Type();
sp = ptr ; // compiler error!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment