diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-10-16 18:25:14 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-10-16 18:25:14 +0200 |
commit | 5c85da5a73424017ea9c340a0412f90356d77358 (patch) | |
tree | e2a7df14fb0eb9ad180da2afd89e53faf2f9524f /src | |
parent | Merge pull request #4602 (diff) | |
parent | Providing user supplied default constructor for expect<void> (diff) | |
download | monero-5c85da5a73424017ea9c340a0412f90356d77358.tar.xz |
Merge pull request #4610
9b6dd934 Providing user supplied default constructor for expect<void> (Lee Clagett)
Diffstat (limited to 'src')
-rw-r--r-- | src/common/expect.h | 4 |
1 files changed, 3 insertions, 1 deletions
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) |