What do you use for `defer` semantics on your C++ codebase?

20 hours ago 2

The moderators removed this post for understandable reasons: https://old.reddit.com/r/cpp/comments/1t9792i/ziglike_defer_for_c20_and_above/

But underneath it was a great discussion about the broader defer idea in C++. I'd love to have that conversation.

What do you use for this behavior in your code? What are the pros and cons of the choice you made?

submitted by /u/javascript to r/cpp
[link] [comments]
Read Entire Article