aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/mem.hh
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2007-02-03 20:58:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2007-02-03 20:58:00 +0000
commit5e27b083c681c45de9d1af5048b946d8e742b80d (patch)
treeb8c54c45e56c84c5488288b4e531335e8b696bc4 /Carpet/CarpetLib/src/mem.hh
parent70d713e63149b4bbfcd5a1ae10b973c3ad6cf127 (diff)
CarpetLib: Use AT to index std::vector
Define a macro AT() to index into std::vector. Depending on the macro NDEBUG, AT() is defined either as at(), providing index checking, or as operator[], providing no checking. darcs-hash:20070203205854-dae7b-a1999c88c95ba12b1ee66505f712aefdd67d7e6f.gz
Diffstat (limited to 'Carpet/CarpetLib/src/mem.hh')
-rw-r--r--Carpet/CarpetLib/src/mem.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Carpet/CarpetLib/src/mem.hh b/Carpet/CarpetLib/src/mem.hh
index 5649bc250..7ccbd6d72 100644
--- a/Carpet/CarpetLib/src/mem.hh
+++ b/Carpet/CarpetLib/src/mem.hh
@@ -25,7 +25,7 @@ public:
T * storage (size_t vectorindex) const
{
assert (vectorindex < vectorlength_);
- assert (clients_.at(vectorindex));
+ assert (clients_.AT(vectorindex));
return & storage_ [vectorindex * nelems_];
}