[Avida-cvs] [Avida2-svn] r247 - trunk/source/tools

kaben@myxo.css.msu.edu kaben at myxo.css.msu.edu
Fri Jul 22 11:10:08 PDT 2005


Author: kaben
Date: 2005-07-22 14:10:07 -0400 (Fri, 22 Jul 2005)
New Revision: 247

Modified:
   trunk/source/tools/tVector.hh
Log:

Changed calls from assert_error to assert macro to resolve OS X gcc-4.0
preprocessing problem.



Modified: trunk/source/tools/tVector.hh
===================================================================
--- trunk/source/tools/tVector.hh	2005-07-22 18:09:47 UTC (rev 246)
+++ trunk/source/tools/tVector.hh	2005-07-22 18:10:07 UTC (rev 247)
@@ -138,8 +138,8 @@
 
 public:
   T& operator[](int idx) {
-    assert_error( idx >= 0, "Lower Bounds Error" );
-    assert_error( idx < Size(), "Upper Bounds Error" );
+    assert( idx >= 0);
+    assert( idx < Size());
     if(idx >= 0 && idx < Size()) { // it is in range
       return _data[idx];
     }
@@ -150,8 +150,8 @@
   }
 
   T operator[](int idx) const {
-    assert_error( idx >= 0, "Lower Bounds Error" );
-    assert_error( idx < Size(), "Upper Bounds Error" );
+    assert( idx >= 0);
+    assert( idx < Size());
     if(idx >= 0 && idx < Size()) {
       return _data[idx];
     }




More information about the Avida-cvs mailing list