Skip to content

Why generated adaptors/proxies don't have default and move constructor? #334

@pawelwod

Description

@pawelwod

I'm currently forced to store new objects in std::uint_ptr which in turn are stored in std::vector. If there would be move constructor available then it would enable std::vector<foo_adaptor> instead of std::vector<std::uint_ptr<foo_adaptor>>. Additionally if there would be default constructor available then separating construction from initialization would be possible.

Why generated adaptors don't have default and move constructor?

I know the obvious answear, but is there any obstacle in changing library to hold pointers (maybe shared ones) instead of references?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions