diff --git a/include/fmt/format.h b/include/fmt/format.h index c559b45f..5aac87e4 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3824,7 +3824,7 @@ struct formatter>> * auto s = fmt::format("{}", fmt::ptr(p)); */ template auto ptr(T p) -> const void* { - static_assert(std::is_pointer::value, ""); + static_assert(std::is_pointer::value, "fmt::ptr used with non-pointer"); return detail::bit_cast(p); }