Skip to content

Commit

Permalink
remove fallback to inline in FMT_CONSTEXPR(20), place needed `inlin…
Browse files Browse the repository at this point in the history
…e` specifiers

in tests
  • Loading branch information
alexezeder committed Dec 24, 2020
1 parent d3af75b commit 70ae54a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/format-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 70ae54a

Please sign in to comment.