Skip to content

use fmt::format_to with vector<char> and FMT_COMPILE  #4206

Description

@trim21

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

I'm coming from #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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions