qswap.h: include what you need
The qSwap() function needs std::swap, so include <utility> manually instead of relying on transitive includes. Pick-to: 6.5 Change-Id: If1331e1eabb55542eac7477522a8e906efb5379f Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> (cherry picked from commit 9d70118c661cb370c9e8b68ad24b804fc7d69a8f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
7e32fc0725
commit
c1851914c4
@ -7,6 +7,8 @@
|
||||
#include <QtCore/qtconfigmacros.h>
|
||||
#include <QtCore/qcompilerdetection.h>
|
||||
|
||||
#include <utility>
|
||||
|
||||
#if 0
|
||||
#pragma qt_class(QtSwap)
|
||||
#pragma qt_sync_stop_processing
|
||||
|
Loading…
x
Reference in New Issue
Block a user