Y
Hacker News
new
|
ask
|
show
|
jobs
by
jacobparker
4510 days ago
Exception issues aside, an odd definition of "scoped". A very non-C++ solution. Use RAII and lock_guard (if possible) as vinkelhake demonstrates. Consider,
LOCKED(lk_var) { return 42; // whoops }