Feature request: Provide public interface to destruct a `"name"_a=value` argument · Issue #4683 · fmtlib/fmt · GitHub
Skip to content

Feature request: Provide public interface to destruct a "name"_a=value argument #4683

Description

@user202729

As in the title.

Reason: currently I have an asynchronous logger. If one call the macro

LOG("{a} {b}", "a"_a=x, "b"_a=y);

I'd like to be able to

  1. compute x1 = TransformOnCallingThread(x); y1 = TransformOnCallingThread(y);
  2. send the format string, x1 and y1 to the logging thread with an inter-thread queue
  3. call fmt::format("{a} {b}", "a"_a=x1, "b"_a=y1)

Currently, as far as I can see, (1) requires reaching into the fmt::detail namespace.

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

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions