Skip to content

Commit

Permalink
fmt: Remove template type from format_target::append
Browse files Browse the repository at this point in the history
  • Loading branch information
JGRennison committed Oct 4, 2024
1 parent e2f344c commit 9315f51
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/format.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,10 @@ struct format_target {
this->target.push_back(c);
}

template <typename U>
void append(const U* begin, const U* end)
void append(const char* begin, const char* end)
{
if (has_overflowed()) return;
this->target.append<U>(begin, end);
this->target.append<char>(begin, end);
}

void append(std::string_view str) { this->append(str.begin(), str.end()); }

Check failure on line 117 in src/core/format.hpp

View workflow job for this annotation

GitHub Actions / Windows (x64) / CI

'format_target::append': no overloaded function could convert all the argument types

Check failure on line 117 in src/core/format.hpp

View workflow job for this annotation

GitHub Actions / Windows (x64) / CI

'format_target::append': no overloaded function could convert all the argument types

Check failure on line 117 in src/core/format.hpp

View workflow job for this annotation

GitHub Actions / Windows (x64) / CI

'format_target::append': no overloaded function could convert all the argument types

Check failure on line 117 in src/core/format.hpp

View workflow job for this annotation

GitHub Actions / Windows (x86) / CI

'format_target::append': no overloaded function could convert all the argument types

Check failure on line 117 in src/core/format.hpp

View workflow job for this annotation

GitHub Actions / Windows (x86) / CI

'format_target::append': no overloaded function could convert all the argument types

Check failure on line 117 in src/core/format.hpp

View workflow job for this annotation

GitHub Actions / Windows (x86) / CI

'format_target::append': no overloaded function could convert all the argument types
Expand Down

0 comments on commit 9315f51

Please sign in to comment.