Skip to content

noexcept specifiers on valur_or() and error_or() not work in C++17 #2

@X1aomu

Description

@X1aomu

#if __cplusplus >= 202'002L // doesn't compile with C++17 with MSVC, may be a compiler bug
noexcept(std::is_nothrow_copy_constructible_v<T> && std::is_nothrow_convertible_v<U, T>)
#endif

Such thing was a bug because is_nothrow_convertible is not available in C++17, thus not any compiler bugs was there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions