C++17: std::char_traits<>::{compare,length} is constexpr. (#2246)

This commit is contained in:
Vladislav Shchapov
2021-04-23 06:11:34 -07:00
committed by GitHub
parent 841aad95b4
commit 128f007b25
3 changed files with 20 additions and 6 deletions
+1 -1
View File
@@ -2130,7 +2130,7 @@ FMT_CONSTEXPR OutputIt write(OutputIt out, Char value) {
}
template <typename Char, typename OutputIt>
FMT_CONSTEXPR OutputIt write(OutputIt out, const Char* value) {
FMT_CONSTEXPR_CHAR_TRAITS OutputIt write(OutputIt out, const Char* value) {
if (!value) {
FMT_THROW(format_error("string pointer is null"));
} else {