Skip to content
Snippets Groups Projects
Commit 3d623370 authored by Robert Klöfkorn's avatar Robert Klöfkorn
Browse files

modified assert in operator [] .

[[Imported from SVN: r1762]]
parent 5cda3e72
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@
#include <iomanip>
#include <string>
#include <rpc/rpc.h>
#include <assert.h>
namespace Dune
{
......@@ -329,8 +330,7 @@ namespace Dune
template <class T>
inline T& Array<T>::operator[] (int i)
{
assert(i>=0);
assert(i<size());
assert( ((i<0) || (i>=size()) ? (std::cout << std::endl << i << " i|size " << size() << std::endl, 0) : 1));
return p[i];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment