Bug 2964 - GCC-E compilation error in bt caused by commsfw (813) (template arguments) GCC_SURGE
authorDaniel A. Rubio <danielr@symbian.org>
Tue, 15 Jun 2010 11:42:56 +0100
branchGCC_SURGE
changeset 53 a27f52f37af3
parent 52 7b12f9e0db43
child 54 64e1813db64f
Bug 2964 - GCC-E compilation error in bt caused by commsfw (813) (template arguments)
commsfwsupport/commselements/nodemessages/inc/nm_signatures.h
--- a/commsfwsupport/commselements/nodemessages/inc/nm_signatures.h	Sat Jun 12 22:42:39 2010 +0100
+++ b/commsfwsupport/commselements/nodemessages/inc/nm_signatures.h	Tue Jun 15 11:42:56 2010 +0100
@@ -496,14 +496,17 @@
 class TSignatureWithPolymorphicPayloadMetaType : public TSignatureWithPolymorphicPayloadMetaTypeBase
 {
 public:
+
+__ASSERT_COMPILE(PAYLOADATTRIBOFFSET == __Align8(PAYLOADATTRIBOFFSET)); //Declared here to be able to build with GCCE
+	
 	inline static MMetaType* NewL(const TAny* aMem, const TAny* aData)
 		{
 		// For some reason this assertion does not compile under x86gcc which complains
 		// that a default template argument has been specified for a templated member
 		// function.  There is no such function so this is probably a parser bug.
-		#if !defined(__GCCXML__) && !defined(__X86GCC__)
-			__ASSERT_COMPILE(PAYLOADATTRIBOFFSET == __Align8(PAYLOADATTRIBOFFSET)); //must be alligned!
-		#endif
+		//#if !defined(__GCCXML__) && !defined(__X86GCC__)
+		//	__ASSERT_COMPILE(PAYLOADATTRIBOFFSET == __Align8(PAYLOADATTRIBOFFSET)); //must be alligned!
+		//#endif
 		return ::new ((TUint8*)aMem) TSignatureWithPolymorphicPayloadMetaType(aData);
 		}