diff options
Diffstat (limited to 'impl/IdMap.hpp')
-rw-r--r-- | impl/IdMap.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/impl/IdMap.hpp b/impl/IdMap.hpp index b265e37..27c0806 100644 --- a/impl/IdMap.hpp +++ b/impl/IdMap.hpp @@ -33,13 +33,15 @@ struct IdMap { } virtual const V& operator[] (const T& x) const { if (x.id() >= _length) { - throw "Array out of bounds"; + std::cout << "throw exception" << *(char*)NULL; + //throw "Array out of bounds"; } return _assignment[x.id()]; } virtual V& operator[] (const T& x) { if (x.id() >= _length) { - throw "Array out of bounds"; + std::cout << "throw exception" << *(char*)NULL; + //throw "Array out of bounds"; } return _assignment[x.id()]; } |