diff options
author | Carlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au> | 2012-09-20 15:19:49 +1000 |
---|---|---|
committer | Carlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au> | 2012-09-20 15:19:49 +1000 |
commit | bb9a899b7c45b830c6b70e2811130a41ebb31ee5 (patch) | |
tree | 070ca77682bf7e3b72a94e78fbe0fcf337bdd98a /impl/IdMap.hpp | |
parent | 3d206f03985b50beacae843d880bccdc91a9f424 (diff) |
Remove exceptions and C++11 features for LLVM.
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()]; } |