Implementing Go's defer keyword in C++ | Hacker News Reader