Skip to content

use reference on temporarry object #29

Description

@SmileGobo

in call method used trick with potentional UB

const any &value = task->onResolved_.call(promiseHolder->value_);

auto call = [&]() -> any {

auto call = [&]() -> any {

const any &value = task->onRejected_.call(promiseHolder->value_);

What do you think about it?

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions