Skip to content

Commit d42a068

Browse files
committed
Apply coding conventions
1 parent f2cec91 commit d42a068

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/compile-test.cc

+2-3
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,7 @@ TEST(compile_test, compile_format_string_literal) {
317317
#endif
318318

319319
#if defined(__cpp_if_constexpr) && defined(__cpp_return_type_deduction)
320-
template <typename S>
321-
bool check_is_compiled_string(const S&) {
320+
template <typename S> auto check_is_compiled_string(const S&) -> bool {
322321
return fmt::is_compiled_string<S>::value;
323322
}
324323

@@ -339,7 +338,7 @@ TEST(compile_test, is_compiled_string) {
339338
(FMT_MSC_VERSION >= 1928 && FMT_MSC_VERSION < 1930)) && \
340339
defined(__cpp_lib_is_constant_evaluated)
341340
template <size_t max_string_length, typename Char = char> struct test_string {
342-
template <typename T> constexpr bool operator==(const T& rhs) const noexcept {
341+
template <typename T> constexpr auto operator==(const T& rhs) const -> bool {
343342
return fmt::basic_string_view<Char>(rhs).compare(buffer) == 0;
344343
}
345344
Char buffer[max_string_length]{};

0 commit comments

Comments
 (0)