From c5e08dfca7f6a97f49cbc46420dc45f14e0c1b5b Mon Sep 17 00:00:00 2001 From: Alexey Ochapov Date: Wed, 30 Dec 2020 08:59:04 +0300 Subject: [PATCH] Revert "remove fallback to `inline` in FMT_CONSTEXPR(20), place needed `inline` specifiers" This reverts commit f35325e8 --- 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 5d949c24..81bc406f 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -2367,13 +2367,13 @@ struct test_error_handler { } }; -FMT_CONSTEXPR inline size_t len(const char* s) { +FMT_CONSTEXPR size_t len(const char* s) { size_t len = 0; while (*s++) ++len; return len; } -FMT_CONSTEXPR inline bool equal(const char* s1, const char* s2) { +FMT_CONSTEXPR bool equal(const char* s1, const char* s2) { if (!s1 || !s2) return s1 == s2; while (*s1 && *s1 == *s2) { ++s1;