Merge pull request #4696

64c8981c Providing user supplied default constructor for expect<void> (Lee Clagett)
This commit is contained in:
Riccardo Spagni 2018-10-22 23:26:23 +02:00
commit b3e053ad18
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -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)