List:Commits« Previous MessageNext Message »
From:Martin Zaun Date:November 27 2009 10:30am
Subject:bzr commit into mysql-5.1-telco-6.3-ndbjtie branch (martin.zaun:3146)
View as plain text  
#At file:///Users/mz/mysql/ndb-6.3-ndbjtie/ based on revid:jorgen.austvik@stripped

 3146 Martin Zaun	2009-11-27
      ndbjtie - jtie unit test fix for gcc 3.4.3 (have gcc-3-compiled jtie working on Linux64).

    modified:
      storage/ndb/ndbjtie/jtie/test/myapi/myapi_test.cpp
=== modified file 'storage/ndb/ndbjtie/jtie/test/myapi/myapi_test.cpp'
--- a/storage/ndb/ndbjtie/jtie/test/myapi/myapi_test.cpp	2009-11-26 03:00:43 +0000
+++ b/storage/ndb/ndbjtie/jtie/test/myapi/myapi_test.cpp	2009-11-27 10:30:02 +0000
@@ -613,17 +613,26 @@ test9()
 }
 
 template< typename E, void (F)(E) >
-static void call(E e) 
+inline void call(E e) 
 {
     (F)(e);
 }
 
 template< typename E, E (F)() >
-static E call() 
+inline E call() 
 {
     return (F)();
 }
 
+#if 0
+// explicit function template instantiations if not declared inline
+// (for gcc 3.4.3)
+template C0::C0E call< C0::C0E, C0::deliver_C0E1 >();
+template const C0::C0E call< const C0::C0E, C0::deliver_C0E1c >();
+template void call< C0::C0E, C0::take_C0E1 >(C0::C0E);
+template void call< const C0::C0E, C0::take_C0E1c >(const C0::C0E);
+#endif
+
 void
 test10()
 {
@@ -648,7 +657,7 @@ test10()
     assert(ec == C0::C0E1);
     
     printf("\ncall< C0::C0E, C0::take_C0E1c >(e)...\n");
-    call< C0::C0E, C0::take_C0E1c >(ec);
+    call< const C0::C0E, C0::take_C0E1c >(ec);
 }
 
 void


Attachment: [text/bzr-bundle] bzr/martin.zaun@sun.com-20091127103002-xcfum515ftcmdvsk.bundle
Thread
bzr commit into mysql-5.1-telco-6.3-ndbjtie branch (martin.zaun:3146)Martin Zaun27 Nov