Add the missing condition to the startStream type trait check

Pick-to: 6.7
Task-number: QTBUG-123625
Change-Id: I951706259f2cac89453f4acfd294490d5483d202
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Alexey Edelev 2024-04-02 13:38:27 +02:00
parent 054970d4ce
commit 75ca64de7c
1 changed files with 6 additions and 5 deletions

View File

@ -47,11 +47,12 @@ protected:
#ifdef Q_QDOC
template <typename StreamType>
#else
template <
typename StreamType,
typename IsCompatibleStream = std::disjunction<std::is_same<StreamType, QGrpcServerStream>,
std::is_same<StreamType, QGrpcClientStream>,
std::is_same<StreamType, QGrpcBidirStream>>>
template <typename StreamType,
typename IsCompatibleStream = typename std::enable_if_t<
std::disjunction_v<std::is_same<StreamType, QGrpcServerStream>,
std::is_same<StreamType, QGrpcClientStream>,
std::is_same<StreamType, QGrpcBidirStream>>,
bool>>
#endif
std::shared_ptr<StreamType> startStream(QLatin1StringView method, const QProtobufMessage &arg,
const QGrpcCallOptions &options)