Comment on In the C++ bag of tricks: scoped locksComments−taway201212yDon't do this. The whole thing gave off a bad smell on first reading so I would never have done this.Thank you vinkelhake for nailing the the real problem (exceptions) and bothering to check whether the stack overhead really exists.Just wanted to chime in with a comment because HN doesn't show vote counts, so future readers will "see" my upvote on vinkelhake's comment.
Comments
Don't do this. The whole thing gave off a bad smell on first reading so I would never have done this.
Thank you vinkelhake for nailing the the real problem (exceptions) and bothering to check whether the stack overhead really exists.
Just wanted to chime in with a comment because HN doesn't show vote counts, so future readers will "see" my upvote on vinkelhake's comment.