@pcwalton ("Patrick Walton") wrote:
Why don't locks wrap what they're guarding in a lock guard in C++? Seems like a clear safety win; is there something I'm missing?
(In this hypothetical world, you could get the current behavior by just wrapping void, so it seems like a pure win…)