aboutsummaryrefslogtreecommitdiff
path: root/src/common/expect.h
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 /src/common/expect.h
parentMerge pull request #4543 (diff)
downloadmonero-9b6dd9348c6447c57e8c03675949871ab21b1f9a.tar.xz
Providing user supplied default constructor for expect<void>
Diffstat (limited to 'src/common/expect.h')
-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)