Providing user supplied default constructor for expect<void>
This commit is contained in:
parent
18683acc84
commit
6246aada9d
|
@ -350,7 +350,9 @@ public:
|
||||||
using error_type = std::error_code;
|
using error_type = std::error_code;
|
||||||
|
|
||||||
//! Create a successful object.
|
//! Create a successful object.
|
||||||
expect() = default;
|
expect() noexcept
|
||||||
|
: code_()
|
||||||
|
{}
|
||||||
|
|
||||||
expect(std::error_code const& code) noexcept
|
expect(std::error_code const& code) noexcept
|
||||||
: code_(code)
|
: code_(code)
|
||||||
|
|
Loading…
Reference in New Issue