Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use std::is_base_of to assert WeakPtr is used correctly
SupportsWeakPtr::StaticAsWeakPtr used to use std::is_convertible to ensure the argument is derived fromSupportsWeakPtrBase. However, the assertion fails also when the class has multiple SupportWeakPtrBases as its ancestor, and in this case the error message from static_assert is inaccurate. Also, it doesn't match to base_nocompile_tests expectation. This CL replaces the std::is_convertible with std::is_base_of and updates base_nocompile_tests expectation. Review URL: https://codereview.chromium.org/1805503002 Cr-Commit-Position: refs/heads/master@{#381415}
- Loading branch information