aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-10-16 18:25:14 +0200
committerRiccardo Spagni <ric@spagni.net>2018-10-16 18:25:14 +0200
commit5c85da5a73424017ea9c340a0412f90356d77358 (patch)
treee2a7df14fb0eb9ad180da2afd89e53faf2f9524f /src
parentMerge pull request #4602 (diff)
parentProviding user supplied default constructor for expect<void> (diff)
downloadmonero-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.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)