without this new versions of clang++ seem to complain that instantiation of the class results in an unused variable.
@@ -42,13 +42,14 @@ class upgradable_mutex {
template <typename T>
class sharable_lock {
public:
- sharable_lock(T) { }
+ sharable_lock(T) {}
};
class scoped_lock {
- scoped_lock(T) { }
+ scoped_lock(T) {}
+ ~scoped_lock() {}
void lock() {}
void unlock() {}