Commits

Martin Felis committed b6cf197

split asserts for better reporting

Comments (0)

Files changed (1)

src/SimpleMath/SimpleMathDynamic.h

 
 		// access operators
 		const val_type& operator[](const unsigned int &index) const {
-			assert (index	>= 0 && index < nrows * ncols);
+			assert (index	>= 0);
+			assert (index < nrows * ncols);
 			return mData[index];
 		};
 		val_type& operator[](const unsigned int &index) {