Skip to content

Missing std::addressof in FindOrNullptr #1184

@ddvamp

Description

@ddvamp

return (it != container.end() ? &(it->second) : nullptr);
} else {
return (it != container.end() ? &(*it) : nullptr);

Текущая реализация FindOrNullptr не учитывает возможную перегрузку operator& у типа элемента.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions