summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/stllike/hashtable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/stllike/hashtable.h b/vespalib/src/vespa/vespalib/stllike/hashtable.h
index 8a5b65cd591..1a982b97208 100644
--- a/vespalib/src/vespa/vespalib/stllike/hashtable.h
+++ b/vespalib/src/vespa/vespalib/stllike/hashtable.h
@@ -166,7 +166,7 @@ public:
bool hasNext() const { return valid() && (_next != npos); }
private:
void destruct() {
- if (!can_skip_destruction<V>::value) {
+ if constexpr (!can_skip_destruction<V>::value) {
if (valid()) {
getValue().~V();
}