Skip to content

Commit

Permalink
Fix build errors for clang 13 + 14
Browse files Browse the repository at this point in the history
  • Loading branch information
a-n-t-h-o-n-y committed Feb 2, 2024
1 parent 5ab19b1 commit ece0bcc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions include/esc/glyph.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,11 @@ template <Attribute T>
[[nodiscard]] auto operator|(std::u32string_view sv, T attr)
-> std::vector<Glyph>
{
auto glyphs = std::vector<Glyph>{
std::begin(sv),
std::end(sv),
};
auto glyphs = std::vector<Glyph>{};
glyphs.reserve(sv.length());
for (auto const symbol : sv) {
glyphs.push_back({symbol});
}
return glyphs | attr;
}

Expand Down

0 comments on commit ece0bcc

Please sign in to comment.