Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bstamour
on Jan 29, 2020
|
parent
|
context
|
favorite
| on:
C++20 Reference Card
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: