summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-04-06 12:56:19 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-04-06 12:56:19 +0000
commit033b3c902a4d428cba71fa97e0a66880d5d946b4 (patch)
treec5e07cb1b6e000de21c8b64c1b6b979b929676ac /vespalib
parentd9529d4ce9056eaa5f184d26faec5d217a985812 (diff)
Add constexpr to the if statement.
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();
}