charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
- From: "Mitchell, John A" <jamitch AT sandia.gov>
- To: "charm AT lists.cs.illinois.edu" <charm AT lists.cs.illinois.edu>
- Cc: "Mitchell, John A" <jamitch AT sandia.gov>
- Subject: [charm] PUP const objects
- Date: Fri, 17 Mar 2017 17:24:17 +0000
- Accept-language: en-US
Is it possible to 'pup' const objects? For example, how would I pup the simple object below with a constant array that can only be set upon initialization?
template<class value_type>
class point {
public:
inline point() : p{0,0,0} {}
inline point(value_type value) : p{value,value,value} {}
inline point(value_type a, value_type b, value_type c) : p{a,b,c} {}
inline point(const value_type q[3]) : p{q[0],q[1],q[2]} {}
inline point& operator=(const point&) = default;
inline point& operator=(point&& t) = default;
inline point(const point&) = default;
inline point(point&&) = default;
private:
const value_type p[3];
};
- [charm] PUP const objects, Mitchell, John A, 03/17/2017
Archive powered by MHonArc 2.6.19.