Parcourir la source

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

JINMEI Tatuya il y a 12 ans
Parent
commit
28a6c7133b
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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() {}