Skip to content

Instantly share code, notes, and snippets.

@bmagyar
Created May 2, 2018 22:31
Show Gist options
  • Save bmagyar/41414f372e64128af3935f6c78c1ef0a to your computer and use it in GitHub Desktop.
Save bmagyar/41414f372e64128af3935f6c78c1ef0a to your computer and use it in GitHub Desktop.
#include <memory>
template <typename T>
class Fancy
{};
template <typename T>
using FancySharedPtr = std::shared_ptr<Fancy<T> >;
int main(int argc, char** argv)
{
Fancy<int> f;
FancySharedPtr<int> f2;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment