Skip to content

std::move_only_function::operator bool doesn't work for DLLs #3037

Description

The current implementation:

_NODISCARD bool _Is_null() const noexcept {
    return _Data._Impl == &_Null_move_only_function;
}

compares with a static object (&_Null_move_only_function), which is different for each DLL

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixedSomething works now, yay!high priorityImportant!

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions