mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-29 18:27:40 +02:00
Apply coding conventions
This commit is contained in:
@ -317,8 +317,7 @@ TEST(compile_test, compile_format_string_literal) {
|
||||
#endif
|
||||
|
||||
#if defined(__cpp_if_constexpr) && defined(__cpp_return_type_deduction)
|
||||
template <typename S>
|
||||
bool check_is_compiled_string(const S&) {
|
||||
template <typename S> auto check_is_compiled_string(const S&) -> bool {
|
||||
return fmt::is_compiled_string<S>::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 <size_t max_string_length, typename Char = char> struct test_string {
|
||||
template <typename T> constexpr bool operator==(const T& rhs) const noexcept {
|
||||
template <typename T> constexpr auto operator==(const T& rhs) const -> bool {
|
||||
return fmt::basic_string_view<Char>(rhs).compare(buffer) == 0;
|
||||
}
|
||||
Char buffer[max_string_length]{};
|
||||
|
Reference in New Issue
Block a user