fmt icon indicating copy to clipboard operation
fmt copied to clipboard

use `fmt::format_to` with `vector<char>` and `FMT_COMPILE`

Open trim21 opened this issue 1 year ago • 0 comments

I'm new to c++, apology if this is not a good issue.

I'm coming from https://github.com/fmtlib/fmt/issues/1771 , but I'm using a vector<char> as memory buffer.

And fmt::format_to(std::back_inserter(out), FMT_COMPILE("{}"), val) works if out is std::string of fmt::memory_buffer but not std::vector<char>, and fmt::format_to(std::back_inserter(buffer), "{}", val) works for vector<char>

Is it possible to add support for vector<char> and FMT_COMPILE?

https://godbolt.org/z/h6xoG65he

trim21 avatar Oct 20 '24 00:10 trim21