aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/gdata.hh
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@aei.mpg.de>2005-04-11 18:31:00 +0000
committerErik Schnetter <schnetter@aei.mpg.de>2005-04-11 18:31:00 +0000
commit579a35c98044e0f5a783b629162bd65c1f451bd0 (patch)
tree69476e85b8d563945e9f3095beda2ac43bbdc290 /Carpet/CarpetLib/src/gdata.hh
parent2cb54e1839cf63d2303a263330c1d9e637129dab (diff)
CarpetLib: Forbid copying data<T> objects
darcs-hash:20050411183135-891bb-5d2ced682685fb55a00da1864560e54bd113f765.gz
Diffstat (limited to 'Carpet/CarpetLib/src/gdata.hh')
-rw-r--r--Carpet/CarpetLib/src/gdata.hh8
1 files changed, 5 insertions, 3 deletions
diff --git a/Carpet/CarpetLib/src/gdata.hh b/Carpet/CarpetLib/src/gdata.hh
index a31468c69..b35f2dbce 100644
--- a/Carpet/CarpetLib/src/gdata.hh
+++ b/Carpet/CarpetLib/src/gdata.hh
@@ -48,6 +48,11 @@ protected: // should be readonly
int tag; // MPI tag for this object
+private:
+ // Forbid copying and passing by value
+ gdata (gdata const &);
+ gdata & operator= (gdata const &);
+
public:
// Constructors
@@ -64,9 +69,6 @@ public:
const operator_type transport_operator = op_error,
const int tag = -1) const = 0;
- // Assignment
- gdata & operator= (gdata const & from);
-
// Processor management
void change_processor (comm_state& state,
const int newproc,