mirror of https://github.com/qt/qtgrpc.git
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:
parent
054970d4ce
commit
75ca64de7c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue