Hi.

I have following code:

Table::const_iterator i(table.constFind(name));
if (i != table.end()) {
    ...
}

Table is a typedef for QHash<...>

This code doesn't work as I expect with Qt 5.4.1 MSVC 2013.
The "if" is never entered, even when 'name' isn't found in the table.
But it starts to work after replacing "end()" with "constEnd()".
So, I guess, end() isn't equal to constEnd()? Is it an intended behavior?
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to