Skip to content

Support reference types as Constructible arguments #5539

Closed
@nfeske

Description

@nfeske

The Constructible utility currently supports only types that provide a constructor, which is not the case for references. However, since Constructible is used as underlying mechanism for Unique_attempt, references cannot be returned as Unique_attempt objects. This is unfortunate for implementing factories (e.g., stack allocation in base/thread.h) that are forced to use a pointer type instead of a reference. To remove the need for such workarounds, Constructible should best support reference types in the first place.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions