QPair<T1, T2> == operator is not working as expected?
Hello Community,
i have the following codelines which gives a result of "true" out of the console.
Code:
QPair<QString, QString> blub, bla;
blub.first=="a";
blub.second=="b";
bla.first=="a";
bla.second=="z";
qDebug() << (blub == bla);
Why is this equal?
Re: QPair<T1, T2> == operator is not working as expected?
Ehm, notice the difference between = and ==
Line 3 to 6 are wrong. And the result is quite fine since both pairs are empty...
Re: QPair<T1, T2> == operator is not working as expected?
Quote:
Originally Posted by
Lykurg
Ehm, notice the difference between = and ==
Line 3 to 6 are wrong. And the result is quite fine since both pairs are empty...
Right, I see ....
this is just a test of the forum user skillz ... ;)
Oh my god it was late yesterday!