diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2012-09-20 18:32:37 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-09-27 15:47:16 +0200 |
commit | 60e2ec9db493acfbb4d032eecd9c4bb3a830eb4c (patch) | |
tree | aa740d5569b0109f92e9a416ac2a8aae8f07eaed /LICENSE.PREVIEW.COMMERCIAL | |
parent | 0e3b1f4b4807c7cd53d5b1720c37f83326cb4bc1 (diff) |
Workaround MSVC2008 build failure after switching to std::upper_bound
QPostEventList is kept sorted by priority; std::upper_bound
is used to insert a QPostEvent in the right place in the list.
Turns out that MSVC2008 is a bit too picky and tries to see if the
list is actually ordered. This causes a build failure as there is
no operator< defined between two QPostEvents (in fact,
an integer -- the priority -- is passed to std::upper_bound).
Work around this issue by defining operator< between two QPostEvents.
Change-Id: Ie3562dd0cc7253e25fc988b25d566d9d9e9fe62b
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'LICENSE.PREVIEW.COMMERCIAL')
0 files changed, 0 insertions, 0 deletions