Update and apply clang-format

This commit is contained in:
Victor Zverovich
2025-05-03 07:29:09 -07:00
parent 26d87edab1
commit 448929d491
6 changed files with 23 additions and 21 deletions

View File

@@ -95,18 +95,17 @@ TEST(string_view_test, compare) {
#if FMT_USE_CONSTEVAL
namespace {
template <size_t N>
struct fixed_string {
char data[N] = {};
template <size_t N> struct fixed_string {
char data[N] = {};
constexpr fixed_string(char const (&m)[N]) {
for (size_t i = 0; i != N; ++i) {
data[i] = m[i];
}
constexpr fixed_string(const char (&m)[N]) {
for (size_t i = 0; i != N; ++i) {
data[i] = m[i];
}
}
};
}
} // namespace
TEST(string_view_test, from_constexpr_fixed_string) {
static constexpr auto fs = fixed_string<5>("x={}");