Re:C++20 Reference Card
by bstamour on Wednesday January 29, 2020 @02:31PM
(#22184819)
Lock guard has no default constructor, so the line will in fact materialize a temporary lock guard around the mutex m, then throw it away at the semi-colon, thus locking nothing.
[ Parent
| on HN ]
There are no comments on this comment yet.