Skip to content

Commit 11b43d2

Browse files
committed
avoid reference to null in virtual_ptr comparison
1 parent 0545d7e commit 11b43d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/openmethod/core.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,7 @@ template<class Left, class Right, class Registry>
16681668
auto operator==(
16691669
const virtual_ptr<Left, Registry>& left,
16701670
const virtual_ptr<Right, Registry>& right) -> bool {
1671-
return &*left == &*right;
1671+
return left.pointer() == right.pointer();
16721672
}
16731673

16741674
template<class Left, class Right, class Registry>

0 commit comments

Comments
 (0)