aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Clagett <code@leeclagett.com>2018-10-15 23:42:29 -0400
committerLee Clagett <code@leeclagett.com>2018-10-15 23:42:29 -0400
commit9b6dd9348c6447c57e8c03675949871ab21b1f9a (patch)
tree3d73843ba6f404ccff70dcc6c6af90b882afefd4
parentMerge pull request #4543 (diff)
downloadmonero-9b6dd9348c6447c57e8c03675949871ab21b1f9a.tar.xz
Providing user supplied default constructor for expect<void>
-rw-r--r--src/common/expect.h4
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)