Skip to content

Fix valid function invoke failed in future class #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 23, 2021

Conversation

deepin-mozart
Copy link
Contributor

In C++11, shared_ptr has an explicit operator bool which
means that a shared_ptr can't be implicitly converted to a bool.
adding an explicit cast is a valid fix to the code.

In C++11, shared_ptr has an explicit operator bool which
means that a shared_ptr can't be implicitly converted to a bool.
adding an explicit cast is a valid fix to the code.
@deepin-mozart
Copy link
Contributor Author

Please rescan this PR by pressing the "Re-run" button to remove failed check.

@ben-clayton
Copy link
Contributor

Thank you @deepin-mozart , the change looks great.

ASAN issue looks unrelated. Merging.

@ben-clayton ben-clayton merged commit a841177 into google:main Dec 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants