mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-10 21:23:27 +01:00
Providing user supplied default constructor for expect<void>
This commit is contained in:
parent
77e1ebff26
commit
9b6dd9348c
@ -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 New Issue
Block a user