From 9b6dd9348c6447c57e8c03675949871ab21b1f9a Mon Sep 17 00:00:00 2001 From: Lee Clagett Date: Mon, 15 Oct 2018 23:42:29 -0400 Subject: 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) -- cgit v1.2.3