Skip to content

Listing 6-15 #174

@theundergroundsorcerer

Description

@theundergroundsorcerer

The example does not compile with VS 2019 if you do not specify the generic parameter explicitly.
Also move constructor and move assignment operators should be noexcept I think.
Also, the consumer function parameter should be void consumer(SimpleUniquePointer&& consumer_ptr)
and not void consumer(SimpleUniquePointer consumerPtr);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions