Skip to content

Commit

Permalink
support for Qt5.14, as a template is already defined inside Qt, it is…
Browse files Browse the repository at this point in the history
… not longer needed.
  • Loading branch information
bnogalm committed Dec 27, 2019
1 parent 5ca157c commit 08e10ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xdr/xdrhelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ operator>>(QDataStream &in, Type &t)\


}

#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
//since Qt5.14 this is defined already inside QDataStream
#else

template<typename Type>
inline typename std::enable_if<std::is_enum<Type>::value,QDataStream&>::type
Expand All @@ -194,5 +196,6 @@ inline typename std::enable_if<std::is_enum<Type>::value,QDataStream&>::type
return in;
}

#endif

#endif // XDRHELPER_H

0 comments on commit 08e10ec

Please sign in to comment.