Encapsulate obscure detail that lower numeric priority is higher queue priority
[clinton/bobotpp.git] / source / String.C
index d60d0d5..15f173c 100644 (file)
@@ -19,6 +19,7 @@
 #include "String.H"
 #include "Utils.H"
 
+#include <cstdlib>
 #include <cstring>
 #include <cctype>
 #include <sstream>
@@ -189,7 +190,7 @@ String::operator[](int i_) const
 
   if (i < 0 || my_string.length () < i) {
     std::cerr << "String index out of range\n";
-    exit(1);
+    std::exit(1);
   }
   return my_string[i];
 }