Browse Source

[2340] added comment about why we need to explicitly define empty dtor.

JINMEI Tatuya 12 years ago
parent
commit
28a6c7133b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/lib/util/locks.h

+ 3 - 0
src/lib/util/locks.h

@@ -49,6 +49,9 @@ template <typename T>
 class scoped_lock {
 public:
     scoped_lock(T) {}
+
+    // We need to define this explicitly.  Some versions of clang++ would
+    // complain about this otherwise.  See Trac ticket #2340
     ~scoped_lock() {}
 
     void lock() {}