Skip to content

Commit

Permalink
Use std::char_traits::length for ansi_color_escape::begin
Browse files Browse the repository at this point in the history
Spirrwell committed Mar 16, 2020
1 parent 85050aa commit 6ec9543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/color.h
Original file line number Diff line number Diff line change
@@ -412,7 +412,7 @@ template <typename Char> struct ansi_color_escape {

FMT_CONSTEXPR const Char* begin() const FMT_NOEXCEPT { return buffer; }
FMT_CONSTEXPR const Char* end() const FMT_NOEXCEPT {
return buffer + std::strlen(buffer);
return buffer + std::char_traits<Char>::length(buffer);
}

private:

0 comments on commit 6ec9543

Please sign in to comment.