Skip to content

Move constructors and assignment operators should be marked as noexcept #24

@tsdgeos

Description

@tsdgeos

According to https://clang.llvm.org/extra/clang-tidy/checks/performance-noexcept-move-constructor.html

Move constructors of all the types used with STL containers, for example, need to be declared noexcept. Otherwise STL will choose copy constructors instead. The same is valid for move assignment operations.

I think this is particularly important for Variant itself that sometimes is a vector of Variant

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