mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
Providing user supplied default constructor for expect<void>
This commit is contained in:
parent
4ad6b66283
commit
64c8981c1c
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue