diff options
Diffstat (limited to 'nihil.ucl/boolean.ccm')
| -rw-r--r-- | nihil.ucl/boolean.ccm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nihil.ucl/boolean.ccm b/nihil.ucl/boolean.ccm index e9c161b..8510152 100644 --- a/nihil.ucl/boolean.ccm +++ b/nihil.ucl/boolean.ccm @@ -37,6 +37,9 @@ export struct boolean final : object { throw type_mismatch(ucl_type, type()); } + // Create a new default-initialised boolean. + boolean() : boolean(false) {} + // Create a new boolean from a value. explicit boolean(value_type value) : object(noref, ::ucl_object_frombool(value)) |
