these unused includes were identifier by clang-include-cleaner. after auditing these source files, all of the reports have been confirmed. please note, because quite a few source files relied on `utils/to_string.hh` to pull in the specialization of `fmt::formatter<std::optional<T>>`, after removing `#include <fmt/std.h>` from `utils/to_string.hh`, we have to include `fmt/std.h` directly. Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
25 lines
735 B
C++
25 lines
735 B
C++
/*
|
|
* Copyright (C) 2015-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <fmt/core.h>
|
|
#include <compare>
|
|
|
|
template <> struct fmt::formatter<std::strong_ordering> : fmt::formatter<string_view> {
|
|
auto format(std::strong_ordering, fmt::format_context& ctx) const -> decltype(ctx.out());
|
|
};
|
|
|
|
template <> struct fmt::formatter<std::weak_ordering> : fmt::formatter<string_view> {
|
|
auto format(std::weak_ordering, fmt::format_context& ctx) const -> decltype(ctx.out());
|
|
};
|
|
|
|
template <> struct fmt::formatter<std::partial_ordering> : fmt::formatter<string_view> {
|
|
auto format(std::partial_ordering, fmt::format_context& ctx) const -> decltype(ctx.out());
|
|
};
|