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

in tests
This commit is contained in:
Alexey Ochapov 2020-12-24 03:33:32 +03:00
parent fe4064a816
commit f35325e89d
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 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;