QDataStream: also disable streaming of member pointers

2fd4a86dc5 disabled the streaming
of pointer with QDataStream, as they would otherwise accidentally
select the `bool` overload. Do the same for member pointers.

Change-Id: I4910953a2856957518b4e51bdc4a0c26d75addab
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Giuseppe D'Angelo 2024-02-16 02:37:47 +01:00
parent 8eb599566e
commit 913f4f1a6f
1 changed files with 2 additions and 0 deletions

View File

@ -177,6 +177,8 @@ public:
QDataStream &operator<<(char16_t c);
QDataStream &operator<<(char32_t c);
QDataStream &operator<<(const volatile void *) = delete;
template <typename T, typename C>
QDataStream &operator<<(T C::*) = delete;
#if QT_DEPRECATED_SINCE(6, 11)
QT_DEPRECATED_VERSION_X_6_11("Use an overload that takes qint64 length.")