int string_to_int (const char* s, int& result) { long temp; int retval= string_to_long (s, temp); if (retval == -1) result= temp; return retval; }
inline long string_to_type(const std::string& value) { return string_to_long(value); }
int string_to_int (const char* s, int& result) { long temp; int retval= string_to_long (s, temp); if (retval == -1) result= temp; return retval; }
inline long string_to_type(const std::string& value) { return string_to_long(value); }