We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e24b8f commit b924f4aCopy full SHA for b924f4a
include/status-code/errored_status_code.hpp
@@ -296,6 +296,13 @@ class errored_status_code<detail::erased<ErasedType>> : public status_code<detai
296
_check();
297
}
298
#endif
299
+ //! Tagged copy construction from an unknown status code. Note that this will be empty if its value type is not
300
+ //! trivially copyable or would not fit into our storage or the source domain's `_do_erased_copy()` refused the copy.
301
+ SYSTEM_ERROR2_CONSTEXPR20 errored_status_code(std::nothrow_t _, const status_code<void> &v) noexcept // NOLINT
302
+ : _base(_, v)
303
+ {
304
+ _check();
305
+ }
306
307
//! Always false (including at compile time), as errored status codes are never successful.
308
constexpr bool success() const noexcept { return false; }
0 commit comments