]> www.ginac.de Git - cln.git/blobdiff - include/cln/SV.h
Replace CL_REQUIRE/CL_PROVIDE(cl_I_ring) with portable code.
[cln.git] / include / cln / SV.h
index 011bb13554265679ef72e965ba7b9a441c08af27..5881b6165090bf1eb585d7ca88e58f16ecb04df3 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "cln/object.h"
 #include "cln/V.h"
-#include "cln/abort.h"
+#include "cln/exception.h"
 #include <cstdlib>
 
 namespace cln {
@@ -50,14 +50,14 @@ public:
        const T & operator[] (unsigned long index) const
        {
                #ifndef CL_SV_NO_RANGECHECKS
-               if (!(index < length())) cl_abort();
+               if (!(index < length())) throw runtime_exception();
                #endif
                return data()[index];
        }
        T & operator[] (unsigned long index)
        {
                #ifndef CL_SV_NO_RANGECHECKS
-               if (!(index < length())) cl_abort();
+               if (!(index < length())) throw runtime_exception();
                #endif
                return data()[index];
        }