Bug 1678 - GCC-E compilation error in bt caused by commsfw (813) (template arguments) CompilerCompatibility
authorDaniel A. Rubio <danielr@symbian.org>
Wed, 28 Apr 2010 11:45:51 +0100
branchCompilerCompatibility
changeset 23 ca99e4de25bf
parent 20 a283fb7b2a66
Bug 1678 - 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 Apr 10 13:42:16 2010 +0100
+++ b/commsfwsupport/commselements/nodemessages/inc/nm_signatures.h	Wed Apr 28 11:45:51 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);
 		}