The patch below fixes an issue with the nocrt vector's != operator which
is commonly used in iteration loops.

I'm submitting this patch under the MIT license.

Best regards,

Martin Fleisz
Thincast Technologies GmbH


diff --git include/iprt/nocrt/vector include/iprt/nocrt/vector
index 607a75097d3..925f9e1ac18 100644
--- include/iprt/nocrt/vector
+++ include/iprt/nocrt/vector
@@ -154,7 +154,7 @@ namespace std
     inline bool operator!=(const RTCNoCrtVectorIterator<a_TypeLeft, 
a_Container> &a_rLeft,
                            const RTCNoCrtVectorIterator<a_TypeRight,
a_Container> &a_rRight) RT_NOEXCEPT
     {
-        return a_rLeft.getConst() == a_rRight.getConst();
+        return a_rLeft.getConst() != a_rRight.getConst();
     }
 
     template<typename a_TypeLeft, typename a_TypeRight, class a_Container>

_______________________________________________
vbox-dev mailing list
vbox-dev@virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev

Reply via email to