Skip to content

dynamic_format_arg_store move constructor is not automatically generated #2654

Closed
@lucpelletier

Description

@lucpelletier

dynamic_format_arg_store has a copy constructor but no explicitly declared move constructor / move assignment operator. These are not automatically generated and any attempts to call the move constructor of dynamic_format_arg_store results in calling the copy constructor. See the following link for quotes from the c++ standard that explicitly state when assignment operators / constructors are automatically generated:

https://stackoverflow.com/questions/4943958/conditions-for-automatic-generation-of-default-copy-move-ctor-and-copy-move-assi

If library maintainers agree that this is a problem that should be fixed, I'm happy to provide a PR to explicitly declare assignment operators and the move constructor.

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