Megatest templates: Fix ambiguity for older compilers
authorPhil Miller <mille121@illinois.edu>
Mon, 26 Dec 2011 16:55:05 +0000 (10:55 -0600)
committerPhil Miller <mille121@illinois.edu>
Mon, 26 Dec 2011 16:55:05 +0000 (10:55 -0600)
tests/charm++/megatest/templates.C

index 887cc303f205f42c45308ef4c375fd8d4f085888..1f6120a45a32c86396af0bb01afaacdebc469520 100644 (file)
@@ -26,7 +26,7 @@ void templates_moduleinit(void)
 template <class dtype> void 
 templates_Reduction<dtype>::submit(templates_Single<dtype> *msg)
 {
-  CProxy_templates_Reduction<dtype> red(Group::thisgroup);
+  CProxy_templates_Reduction<dtype> red(this->Group::thisgroup);
   red[0].remoteRecv(msg);
 }
 
@@ -57,7 +57,7 @@ templates_Collector<dtype>::templates_Collector(void)
 {
   CProxy_templates_Reduction<dtype> red(templates_redid);
   if(CkMyPe()==0) {
-    templates_ClientMsg *cmsg = new templates_ClientMsg(Chare::thishandle);
+    templates_ClientMsg *cmsg = new templates_ClientMsg(this->Chare::thishandle);
     red[0].Register(cmsg);
   }
   templates_Single<dtype> *m = new templates_Single<dtype>((dtype)(CkMyPe()+1));