Skip to content

Copy a fmt::dynamic_format_arg_store<Context> object #2431

Description

@spyridon97

I have a fmt::dynamic_format_arg_store<fmt::format_context> args object which i populate with some variables.

I would like to be able to copy args into a new object args2 so that I can push back new variables while :

  1. maintaining all the variables of args in args2
  2. without touching args

Is that possible in any way?

  1. There is no copy constructor for fmt::dynamic_format_arg_store. Could one be implemented?
  2. Can I convert fmt::dynamic_format_arg_store to fmt::basic_format_args, and extract the variables from there and push them back to a fmt::dynamic_format_arg_store object?

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions