fixed template compilation on mingw

This commit is contained in:
fourtf
2018-01-28 15:28:02 +01:00
parent c62a91ac2b
commit 3d479e4c83
6 changed files with 10 additions and 9 deletions
+1 -2
View File
@@ -21,8 +21,7 @@ public:
void appendTimestamp(const QTime &time);
QString matchLink(const QString &string);
template <typename T, typename... Args,
typename _ = std::enable_if<std::is_base_of<MessageElement, T>::value>::type>
template <typename T, typename... Args>
T *emplace(Args &&... args)
{
static_assert(std::is_base_of<MessageElement, T>::value, "T must extend MessageElement");