Skip to content

Instantly share code, notes, and snippets.

@rhysd
Created December 31, 2013 15:21
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rhysd/8198276 to your computer and use it in GitHub Desktop.
Save rhysd/8198276 to your computer and use it in GitHub Desktop.
#include <memory>
#include <cstdio>
struct year{year(){ std::printf("あけましておめでとうございます.\n"); };};
using A = std::unique_ptr<year>;
int main()
{
A happy {new year};
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment