diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2014-06-19 10:49:34 -0700 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-01-09 12:05:26 +0100 |
commit | 62b67092eadd97d739b05aeac68d556e02d22f85 (patch) | |
tree | 0fae24dd3075251da665e40d85eb8ed83dea6c0a /src/corelib/doc | |
parent | 3fc9f97d61f5cf6a5d4941ddb4b6cd94136dc646 (diff) |
Don't specialize std::swap, just overload it in the global namespace
This is the modern, correct way of providing a swap
operation. See http://stackoverflow.com/a/8439357/134841 for more
information. By changing this, we also fix Qt building with ICC
and libc++.
This patch also adds a noexcept() rule to match what the C++11 standard
requires.
Change-Id: I18f22fe7c92cf253e94168e1312346b4c183f536
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/corelib/doc')
0 files changed, 0 insertions, 0 deletions