mirror of
https://github.com/boostorg/openmethod.git
synced 2026-01-19 04:22:12 +00:00
avoid reference to null in virtual_ptr comparison
This commit is contained in:
@@ -1668,7 +1668,7 @@ template<class Left, class Right, class Registry>
|
||||
auto operator==(
|
||||
const virtual_ptr<Left, Registry>& left,
|
||||
const virtual_ptr<Right, Registry>& right) -> bool {
|
||||
return &*left == &*right;
|
||||
return left.pointer() == right.pointer();
|
||||
}
|
||||
|
||||
template<class Left, class Right, class Registry>
|
||||
|
||||
Reference in New Issue
Block a user