Skip to content

Commit

Permalink
errored_status_code(const status_code<void> &v) had not been
Browse files Browse the repository at this point in the history
upgraded to take `in_place_t` to match `status_code`. Fixed.
  • Loading branch information
ned14 committed Dec 16, 2023
1 parent 2bb1257 commit f40f306
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/status-code/errored_status_code.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ template <class DomainType> class errored_status_code : public status_code<Domai
//! Always false (including at compile time), as errored status codes are never successful.
constexpr bool success() const noexcept { return false; }
//! Return a const reference to the `value_type`.
constexpr const value_type &value() const &noexcept { return this->_value; }
constexpr const value_type &value() const & noexcept { return this->_value; }
};

namespace traits
Expand Down Expand Up @@ -270,8 +270,8 @@ template <class ErasedType> class errored_status_code<detail::erased<ErasedType>
#if defined(_CPPUNWIND) || defined(__EXCEPTIONS) || defined(STANDARDESE_IS_IN_THE_HOUSE)
//! Explicit copy construction from an unknown status code. Note that this will be empty if its value type is not trivially copyable or would not fit into our
//! storage or the source domain's `_do_erased_copy()` refused the copy.
explicit errored_status_code(const status_code<void> &v) // NOLINT
: _base(v)
explicit errored_status_code(in_place_t _, const status_code<void> &v) // NOLINT
: _base(_, v)
{
_check();
}
Expand Down

0 comments on commit f40f306

Please sign in to comment.