We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider adding a formatter for std::expected<void, E>:
std::expected<void, E>
template <typename E, typename Char> struct formatter<std::expected<void, E>, Char, std::enable_if_t<is_formattable<E, Char>::value>> { FMT_CONSTEXPR auto parse(parse_context<Char>& ctx) -> const Char* { return ctx.begin(); } template <typename FormatContext> auto format(const std::expected<void, E>& value, FormatContext& ctx) const -> decltype(ctx.out()) { auto out = ctx.out(); if (value.has_value()) { out = detail::write<Char>(out, "expected("); } else { out = detail::write<Char>(out, "unexpected("); out = detail::write_escaped_alternative<Char>(out, value.error()); } *out++ = ')'; return out; } };
Output expected() when there is no error
expected()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Consider adding a formatter for
std::expected<void, E>
:The text was updated successfully, but these errors were encountered: