From: JINMEI Tatuya Date: Tue, 9 Oct 2012 23:43:16 +0000 (-0700) Subject: [2340] added comment about why we need to explicitly define empty dtor. X-Git-Tag: trac2402_base~15^2~25^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=28a6c7133b1fa8f5334f91c514f5dc8e0802e4eb;p=thirdparty%2Fkea.git [2340] added comment about why we need to explicitly define empty dtor. --- diff --git a/src/lib/util/locks.h b/src/lib/util/locks.h index 3b51a5ad44..f33ff960e3 100644 --- a/src/lib/util/locks.h +++ b/src/lib/util/locks.h @@ -49,6 +49,9 @@ template 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() {}