Commit 59c268a5 authored by Victor Zverovich's avatar Victor Zverovich

Use strlen when possible since it's constexpr on gcc

parent 918bb1ce
......@@ -230,6 +230,9 @@ FMT_CONSTEXPR size_t length(const Char *s) {
while (*s) ++s;
return s - start;
}
#if FMT_GCC_VERSION
FMT_CONSTEXPR size_t length(const char *s) { return std::strlen(s); }
#endif
} // namespace internal
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment