Merge pull request #4610

9b6dd934 Providing user supplied default constructor for expect<void> (Lee Clagett)
release-v0.5.0
Riccardo Spagni 6 years ago
commit 5c85da5a73
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

@ -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…
Cancel
Save