From 64c8981c1cad45fe366e0c691422503df69192b4 Mon Sep 17 00:00:00 2001 From: Lee Clagett Date: Mon, 15 Oct 2018 23:42:29 -0400 Subject: [PATCH] Providing user supplied default constructor for expect --- src/common/expect.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/expect.h b/src/common/expect.h index 326242502..72e4060a7 100644 --- a/src/common/expect.h +++ b/src/common/expect.h @@ -350,7 +350,9 @@ public: using error_type = std::error_code; //! Create a successful object. - expect() = default; + expect() noexcept + : code_() + {} expect(std::error_code const& code) noexcept : code_(code)