Skip to content

Dynamic construction of *named* argument lists? #1655

Closed
@suo

Description

Hey, I noticed in the latest release that there is now a dynamic_format_arg_store, but it doesn't support named arguments. Is there a plan to add such capability? I'm thinking of something along the lines of:

fmt::dynamic_format_named_argument_store<fmt::format_context> store;
store.emplace_back("name", 123);
store.emplace_back("another_name", 456);
fmt::vprint("{name} + {another_name}", store);

Would this be hard to implement? I can take a crack at it given some starting guidance.

Activity

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

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