]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2340] added comment about why we need to explicitly define empty dtor.
authorJINMEI Tatuya <jinmei@isc.org>
Tue, 9 Oct 2012 23:43:16 +0000 (16:43 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Tue, 9 Oct 2012 23:43:16 +0000 (16:43 -0700)
src/lib/util/locks.h

index 3b51a5ad447b260fe9f3b3c9f1c7d9bdbfcbc4b1..f33ff960e3c9c852ba39eb6815981c0c136f908d 100644 (file)
@@ -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() {}