diff options
author | Erik Schnetter <schnetter@gmail.com> | 2012-09-14 13:48:08 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2012-09-14 13:48:08 -0400 |
commit | 7f848c7f375b04ef4b32f612d76363b5da9f741b (patch) | |
tree | f71dc109aaa40f4df452c0e72f270c8b6a51b673 | |
parent | b5d01b2e2907ad652a04ae747d862c7a357ba810 (diff) |
CarpetLib: Allow assigning a region to itself
-rw-r--r-- | Carpet/CarpetLib/src/region.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Carpet/CarpetLib/src/region.cc b/Carpet/CarpetLib/src/region.cc index f0d486260..6495abf01 100644 --- a/Carpet/CarpetLib/src/region.cc +++ b/Carpet/CarpetLib/src/region.cc @@ -36,9 +36,7 @@ region_t::region_t (region_t const & a) region_t & region_t::operator= (region_t const & a) { - assert(&a != this); // was not correctly handled before, see if it was actually used if (&a == this) return *this; // nothing to do - assert (invariant()); if (processors != NULL) { delete processors; |