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
Jędrzej Nowacki 2011-12-13 10:14:23 +01:00 committed by Qt by Nokia
parent 7694599ef9
commit 3ed0a23323
1 changed files with 13 additions and 0 deletions

View File

@ -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*>
{