Skip to content
This repository was archived by the owner on Jun 3, 2018. It is now read-only.
This repository was archived by the owner on Jun 3, 2018. It is now read-only.

std::swap noexcept workaround is inaccurate #14

@jeremysalwen

Description

@jeremysalwen

The commit b74e3a9 fixes clang 4.0's complaint, but still exhibits a bug. The noexcept specification will check the noexceptness of std::swap(E&, E&), but inside the function, ADL is used, and so swap(E&,E&) may resolve to another swap function besides std::swap. This means that the noexceptness of the function does not match the noexcept declaration. This could cause serious failures.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions