mirror of
https://github.com/boostorg/intrusive.git
synced 2025-08-05 15:34:35 +02:00
Merge pull request #57 from ecatmur/patch-1
UB: comparing unrelated pointers
This commit is contained in:
@@ -932,7 +932,8 @@ struct bucket_plus_vtraits
|
|||||||
|
|
||||||
//The end node is embedded in the singly linked list:
|
//The end node is embedded in the singly linked list:
|
||||||
//iterate until we reach it.
|
//iterate until we reach it.
|
||||||
while(!(first_ptr <= it.pointed_node() && it.pointed_node() <= last_ptr)){
|
while(!(std::less_equal<slist_node_ptr>()(first_ptr, it.pointed_node()) &&
|
||||||
|
std::less_equal<slist_node_ptr>()(it.pointed_node(), last_ptr))){
|
||||||
++it;
|
++it;
|
||||||
}
|
}
|
||||||
//Now get the bucket_impl from the iterator
|
//Now get the bucket_impl from the iterator
|
||||||
|
Reference in New Issue
Block a user