qt5base-lts/tests/auto/corelib/io/qdatastream
Thiago Macieira 795a54ff96 QDataStream: add operator<< and >> for std::nullptr_t
std::nullptr_t is nullary: it accepts only one value, nullptr. So we
don't need to read or write anything. This commit simply adds the two
operators that allow generic code to operate on std::nullptr_t if
required.

This commit also adds the actual use to QMetaType::load/save, even
though there's no change in behavior.

[ChangeLog][QtCore][QDataStream] Added operator<< and operator>>
overloads that take std::nullptr_t, to facilitate generic code.

Change-Id: Iae839f6a131a4f0784bffffd14aa37e7f62d2740
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2017-04-07 17:41:06 +00:00
..
.gitignore
datastream.q42
qdatastream.pro Remove the traces of the discontinued android-no-sdk platform 2016-03-30 10:12:34 +00:00
testdata.qrc Android: Fix QDataStream test 2015-01-09 15:41:34 +01:00
tst_qdatastream.cpp QDataStream: add operator<< and >> for std::nullptr_t 2017-04-07 17:41:06 +00:00