fix static assert error message

This commit is contained in:
Stephen Birarda 2015-07-08 19:10:13 -07:00
parent f6fbc14f5a
commit 04e7b8cd02

View file

@ -40,7 +40,7 @@ public:
}
template<typename U> qint64 writePrimitive(const U& data) {
static_assert(!std::is_pointer<U>::value, "T must not be a pointer");
static_assert(!std::is_pointer<U>::value, "U must not be a pointer");
return QIODevice::write(reinterpret_cast<const char*>(&data), sizeof(U));
}
protected: