Revert "remove fallback to inline in FMT_CONSTEXPR(20), place needed inline specifiers"

This reverts commit f35325e8
This commit is contained in:
Alexey Ochapov 2020-12-30 08:59:04 +03:00
parent f5e9b8699d
commit c5e08dfca7
No known key found for this signature in database
GPG Key ID: 9DC52E8F031B8DA8

View File

@ -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; size_t len = 0;
while (*s++) ++len; while (*s++) ++len;
return 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; if (!s1 || !s2) return s1 == s2;
while (*s1 && *s1 == *s2) { while (*s1 && *s1 == *s2) {
++s1; ++s1;