Add specialization for QTypeInfo<void>
QTypeInfo uses sizeof which is illegal operation for void type. Change-Id: Idf43551bdfafbb76e32f4f2785af5f4291981e73 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Olivier Goffart <ogoffart@woboq.com>bb10
parent
7694599ef9
commit
3ed0a23323
|
|
@ -2027,6 +2027,19 @@ public:
|
|||
};
|
||||
};
|
||||
|
||||
template<>
|
||||
class QTypeInfo<void>
|
||||
{
|
||||
public:
|
||||
enum {
|
||||
isPointer = false,
|
||||
isComplex = false,
|
||||
isStatic = false,
|
||||
isLarge = false,
|
||||
isDummy = false
|
||||
};
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
class QTypeInfo<T*>
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue