|
|
|
|
|
by the_why_of_y
4031 days ago
|
|
The following code would do the right thing; see if you can spot the difference, and think about whether you would catch that in code review (g++/clang++/visualc++ won't warn about it). {
mutex_guard guard(some_mutex);
foo();
}
|
|
The answer to the code review question is obvious. I didn't see the error even though I was told what happens.