summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
Diffstat (limited to 'document')
-rw-r--r--document/src/vespa/document/select/result.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/document/src/vespa/document/select/result.h b/document/src/vespa/document/select/result.h
index 157121b43dd..4e30cb5a8af 100644
--- a/document/src/vespa/document/select/result.h
+++ b/document/src/vespa/document/select/result.h
@@ -20,6 +20,7 @@
#pragma once
#include <assert.h>
+#include <vespa/vespalib/util/hdr_abort.h>
#include <vespa/document/util/printable.h>
namespace document::select {
@@ -49,7 +50,7 @@ public:
return 1u;
if (this == &Result::True)
return 2u;
- assert(false); abort();
+ HDR_ABORT("should not be reached");
}
static const Result &fromEnum(uint32_t val) {
@@ -59,7 +60,7 @@ public:
return Result::False;
if (val == 2u)
return Result::True;
- assert(false); abort();
+ HDR_ABORT("should not be reached");
}
private: