diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-01-07 15:44:05 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-01-08 00:39:33 +0100 |
commit | 597a71fa99ea4845d61e5db630de02d73bf37421 (patch) | |
tree | 8c36bdf6f2fbb837573320a85729aa5fa0bd3a60 /src/corelib/global/qnamespace.qdoc | |
parent | 0dacb1e2821b3e7a70e42babf64c0cc217a6fa5c (diff) |
Make qSwap() noexcept, if possible
This greatly increases the value of qSwap(), since not only does it
automatically do the parallel std+ADL lookup of swap(), but also
now centralizes the rather messy code involved to create a correct
noexcept specification.
Other code now can simply use
Q_DECL_NOEXCEPT_EXPT(noexcept(qSwap(lhs, rhs))).
Change-Id: Ia35df4876b143e86c4150ac452a48c3775c3702b
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/global/qnamespace.qdoc')
0 files changed, 0 insertions, 0 deletions