Skip to content

Commit

Permalink
Merge pull request monero-project#4610
Browse files Browse the repository at this point in the history
9b6dd93 Providing user supplied default constructor for expect<void> (Lee Clagett)
  • Loading branch information
fluffypony committed Oct 16, 2018
2 parents d4e4fac + 9b6dd93 commit 5c85da5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/common/expect.h
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,9 @@ class expect<void>
using error_type = std::error_code;

//! Create a successful object.
expect() = default;
expect() noexcept
: code_()
{}

expect(std::error_code const& code) noexcept
: code_(code)
Expand Down

0 comments on commit 5c85da5

Please sign in to comment.