diff options
author | Lee Clagett <code@leeclagett.com> | 2018-10-15 23:42:29 -0400 |
---|---|---|
committer | Lee Clagett <code@leeclagett.com> | 2018-10-15 23:42:29 -0400 |
commit | 9b6dd9348c6447c57e8c03675949871ab21b1f9a (patch) | |
tree | 3d73843ba6f404ccff70dcc6c6af90b882afefd4 | |
parent | Merge pull request #4543 (diff) | |
download | monero-9b6dd9348c6447c57e8c03675949871ab21b1f9a.tar.xz |
Providing user supplied default constructor for expect<void>
-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) |