#include
struct ExampleError {};
template
struct std::formatter : std::formatter
{
auto format(const ExampleError&, std::format_context& context) const
{
return std::formatter::format(std::string_view("ExampleError "), context);
}
};
#include
int main()
{
std::cout fmt::v10::detail::format_string_checker::on_arg_id(), begin)’
/usr/include/fmt/core.h
/usr/include/fmt/core.h
2548 | type_is_unformattable_for _;
| ^
Подробнее здесь: https://stackoverflow.com/questions/797 ... dformatter
Мобильная версия