charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
- From: 董理 <dongli AT lasg.iap.ac.cn>
- To: charm AT cs.illinois.edu
- Subject: [charm] Could entry method argument type be a template argument?
- Date: Thu, 10 Mar 2016 09:44:17 +0800
Dear all,
I would like to know if the argument type of an entry method is a template
argument, how to deal with it? The following is a simplified example:
chare Foo {
entry void bar(<DataType> x); // <— How to express ‘DataType’?
};
template <typename DataType>
class Foo : public CBase_Foo {
public:
void bar(DataType x);
};
The reason why I am using template on chare object is that the user of my
codes can use different data type, such as double, int.
Best regards,
Li
- [charm] Could entry method argument type be a template argument?, 董理, 03/09/2016
- Re: [charm] Could entry method argument type be a template argument?, Phil Miller, 03/09/2016
- Re: [charm] Could entry method argument type be a template argument?, 董理, 03/10/2016
- Re: [charm] Could entry method argument type be a template argument?, Phil Miller, 03/10/2016
- Re: [charm] Could entry method argument type be a template argument?, 董理, 03/10/2016
- <Possible follow-up(s)>
- [charm] Could entry method argument type be a template argument?, 董理, 03/09/2016
- [charm] Could entry method argument type be a template argument?, 董理, 03/09/2016
- Re: [charm] Could entry method argument type be a template argument?, Phil Miller, 03/09/2016
Archive powered by MHonArc 2.6.16.