expose detail::throw_format_error (#3551)

This enables to only #include <fmt/core.h> when defining formatters.
This commit is contained in:
Martin Jeřábek
2023-07-26 22:21:38 +02:00
committed by GitHub
parent 4f46cb82f3
commit 503d49286d
2 changed files with 5 additions and 2 deletions

View File

@@ -638,6 +638,9 @@ struct error_handler {
};
} // namespace detail
/** Helper function to throw an error from a custom formatter. */
using detail::throw_format_error;
/** String's character type. */
template <typename S> using char_t = typename detail::char_t_impl<S>::type;