From 2c304f2c0b6b994efbf6c8c1b1720a4bdfdc35ba Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 13 Jun 2022 14:19:43 +1000 Subject: [PATCH] bool: add default DONTCARE constructor for tribool --- bool.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bool.hpp b/bool.hpp index 01a05c04..5afb510b 100644 --- a/bool.hpp +++ b/bool.hpp @@ -31,6 +31,10 @@ namespace cruft { : m_value (value::DONTCARE) { ; } + constexpr tribool () + : tribool (nullptr) + { ; } + /// Return true if the object contains a concrete value constexpr bool has (void) const {