From f35325e89d7f3e877520f4c7ade3e28e9397f268 Mon Sep 17 00:00:00 2001 From: Alexey Ochapov Date: Thu, 24 Dec 2020 03:33:32 +0300 Subject: [PATCH] remove fallback to `inline` in FMT_CONSTEXPR(20), place needed `inline` specifiers in tests --- test/format-test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/format-test.cc b/test/format-test.cc index 81bc406f..5d949c24 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -2367,13 +2367,13 @@ struct test_error_handler { } }; -FMT_CONSTEXPR size_t len(const char* s) { +FMT_CONSTEXPR inline size_t len(const char* s) { size_t len = 0; while (*s++) ++len; return len; } -FMT_CONSTEXPR bool equal(const char* s1, const char* s2) { +FMT_CONSTEXPR inline bool equal(const char* s1, const char* s2) { if (!s1 || !s2) return s1 == s2; while (*s1 && *s1 == *s2) { ++s1;