From 0294b95cfce940b2fe59156678d1a7b3da306913 Mon Sep 17 00:00:00 2001 From: MoAlyousef Date: Fri, 11 Sep 2020 13:20:11 +0300 Subject: [PATCH] add default --- src/error.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/error.h b/src/error.h index 89fe5bd..dae2227 100644 --- a/src/error.h +++ b/src/error.h @@ -11,12 +11,11 @@ struct Status { GenerationError, BuildError, }; - Status() = delete; Status(Code ec) noexcept; operator int() noexcept; private: - Code ec_; + Code ec_ = Code::Success; }; } // namespace cmkr::error