Skip to content

Задепрекатить метод std::function::target() and target_type() #646

Description

@raidenluikang

<Описание вашей идеи>

метод std::function target() , target_type() требует RTTI, их нужно задепрекатить для дальнейший удалений.

Да сейчас появился std::copyable_function/move_only_function.
Но std::function привычнее многому. Зачем платить за что мы не используем.
метод std::function.target, target_type 99% случаев не используется никогда.

Полезные ссылки:
https://en.cppreference.com/cpp/utility/functional/function/target
https://en.cppreference.com/cpp/utility/functional/function/target_type

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions