summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-04-06 11:53:14 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-04-06 11:53:14 +0000
commit6f9f476072586b51791a9f8320baebd7191dbfdc (patch)
tree3a8b6d6792c310321434e57b9e7b7132e36c5531 /vespalib
parent4ec27a48c2876eae46db7adf52f23380f2db4fb0 (diff)
Invert the logic.
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/stllike/hashtable.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vespalib/src/vespa/vespalib/stllike/hashtable.h b/vespalib/src/vespa/vespalib/stllike/hashtable.h
index ac8dc381e59..e96ef7d9175 100644
--- a/vespalib/src/vespa/vespalib/stllike/hashtable.h
+++ b/vespalib/src/vespa/vespalib/stllike/hashtable.h
@@ -144,7 +144,7 @@ public:
return *this;
}
~hash_node() {
- if (can_skip_destruction<V>::value) {
+ if (!can_skip_destruction<V>::value) {
if (valid()) {
getValue().~V();
}
@@ -164,7 +164,7 @@ public:
private:
void destruct() {
if (valid()) {
- if (can_skip_destruction<V>::value) {
+ if (!can_skip_destruction<V>::value) {
getValue().~V();
}
_next = invalid;