Skip to content

Commit f35325e

Browse files
committed
remove fallback to inline in FMT_CONSTEXPR(20), place needed inline specifiers
in tests
1 parent fe4064a commit f35325e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/format-test.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -2367,13 +2367,13 @@ struct test_error_handler {
23672367
}
23682368
};
23692369

2370-
FMT_CONSTEXPR size_t len(const char* s) {
2370+
FMT_CONSTEXPR inline size_t len(const char* s) {
23712371
size_t len = 0;
23722372
while (*s++) ++len;
23732373
return len;
23742374
}
23752375

2376-
FMT_CONSTEXPR bool equal(const char* s1, const char* s2) {
2376+
FMT_CONSTEXPR inline bool equal(const char* s1, const char* s2) {
23772377
if (!s1 || !s2) return s1 == s2;
23782378
while (*s1 && *s1 == *s2) {
23792379
++s1;

0 commit comments

Comments
 (0)