diff options
-rw-r--r-- | libadhocutil/lockHelpers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libadhocutil/lockHelpers.h b/libadhocutil/lockHelpers.h index 4bb285b..d306f9c 100644 --- a/libadhocutil/lockHelpers.h +++ b/libadhocutil/lockHelpers.h @@ -6,7 +6,7 @@ #define LIBADHOC_LOCK_WITHLINE(a) LIBADHOC_LOCK_CONCAT(a, __LINE__) #define BaseLock(l, lt) lt LIBADHOC_LOCK_WITHLINE(_lck)(l) -#define BaseScopeLock(l, lt) if (auto LIBADHOC_LOCK_WITHLINE(_lck) = lt(l)) +#define BaseScopeLock(l, lt) if (lt LIBADHOC_LOCK_WITHLINE(_lck) {l}) #define Lock(l) BaseLock(l, std::unique_lock) #define SharedLock(l) BaseLock(l, std::shared_lock) |