From d42a068dbd4c6bcec8858ec642cf6a38503584a2 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 5 Feb 2025 11:06:45 -0800 Subject: [PATCH] Apply coding conventions --- test/compile-test.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/compile-test.cc b/test/compile-test.cc index 88b8269b2a56..b4c7e4b87f91 100644 --- a/test/compile-test.cc +++ b/test/compile-test.cc @@ -317,8 +317,7 @@ TEST(compile_test, compile_format_string_literal) { #endif #if defined(__cpp_if_constexpr) && defined(__cpp_return_type_deduction) -template -bool check_is_compiled_string(const S&) { +template auto check_is_compiled_string(const S&) -> bool { return fmt::is_compiled_string::value; } @@ -339,7 +338,7 @@ TEST(compile_test, is_compiled_string) { (FMT_MSC_VERSION >= 1928 && FMT_MSC_VERSION < 1930)) && \ defined(__cpp_lib_is_constant_evaluated) template struct test_string { - template constexpr bool operator==(const T& rhs) const noexcept { + template constexpr auto operator==(const T& rhs) const -> bool { return fmt::basic_string_view(rhs).compare(buffer) == 0; } Char buffer[max_string_length]{};