mirror of https://github.com/CGAL/cgal
- prefixed atoi and exit with "std::"
This commit is contained in:
parent
95bed159a2
commit
f98be94d6d
|
|
@ -1213,8 +1213,8 @@ expel_artificial_variables_from_basis( )
|
|||
}
|
||||
}
|
||||
if ((art_basic != 0) && no_ineq) {
|
||||
std::cerr << "Constraint matrix has not full row rank" << std::endl;
|
||||
exit(1);
|
||||
CGAL_qpe_assertion_msg(false,
|
||||
"Constraint matrix has not full row rank");
|
||||
}
|
||||
|
||||
// remove the remaining ones with their corresponding equality constraints
|
||||
|
|
|
|||
|
|
@ -19,6 +19,8 @@
|
|||
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <cstdlib>
|
||||
|
||||
#include <CGAL/QP_solver/gmp_double.h>
|
||||
#include <CGAL/QP_solver.h>
|
||||
#include <CGAL/QP_full_exact_pricing.h>
|
||||
|
|
@ -50,7 +52,7 @@ int main(const int argNr,const char **args) {
|
|||
if (!qp.is_valid()) {
|
||||
cout << "Input is not a valid MPS file." << endl
|
||||
<< "Error: " << qp.error() << endl;
|
||||
exit(2);
|
||||
std::exit(2);
|
||||
}
|
||||
|
||||
if (verbosity > 0) {
|
||||
|
|
|
|||
|
|
@ -23,6 +23,8 @@
|
|||
#include <string>
|
||||
#include <locale>
|
||||
|
||||
#include <cstdlib>
|
||||
|
||||
#include <CGAL/QP_solver/gmp_double.h>
|
||||
#include <CGAL/QP_solver.h>
|
||||
#include <CGAL/QP_full_exact_pricing.h>
|
||||
|
|
@ -123,13 +125,13 @@ std::string replace1(const std::string& msg,const std::string& replacement)
|
|||
void bailout(const char *msg)
|
||||
{
|
||||
std::cout << "Error: " << msg << '.' << std::endl;
|
||||
exit(1);
|
||||
std::exit(1);
|
||||
}
|
||||
|
||||
void bailout1(const char *msg,const std::string& param)
|
||||
{
|
||||
std::cout << "Error: " << replace1(msg,param) << '.' << std::endl;
|
||||
exit(1);
|
||||
std::exit(1);
|
||||
}
|
||||
|
||||
void usage()
|
||||
|
|
@ -162,7 +164,7 @@ void usage()
|
|||
<< "for symmetric and the non-dedicated solver on the instance).\n"
|
||||
<< "You can also negate the options 'l', 's', 'r', or 'f' by\n"
|
||||
<< "replacing the '-' by a '+'.\n";
|
||||
exit(1);
|
||||
std::exit(1);
|
||||
}
|
||||
|
||||
namespace Token { // A simple token reader with put-back facility.
|
||||
|
|
|
|||
|
|
@ -29,7 +29,10 @@
|
|||
#include <CGAL/QP_solver/Double.h>
|
||||
#include <CGAL/Gmpq.h>
|
||||
#include <CGAL/Gmpz.h>
|
||||
|
||||
#include <cassert>
|
||||
#include <cstdlib>
|
||||
|
||||
#include <functional>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
|
@ -786,7 +789,7 @@ bool map_tags(std::ifstream& from, int verbose, int pricing_strategy_index,
|
|||
break;
|
||||
default :
|
||||
error("impossible tag value");
|
||||
exit(-1);
|
||||
std::exit(-1);
|
||||
}
|
||||
} else if (i==4) { // is_in_standard_form
|
||||
if (p->second == '1')
|
||||
|
|
@ -799,12 +802,12 @@ bool map_tags(std::ifstream& from, int verbose, int pricing_strategy_index,
|
|||
break;
|
||||
default :
|
||||
error("impossible tag value");
|
||||
exit(-1);
|
||||
std::exit(-1);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
error("unspecified tags");
|
||||
exit(-1);
|
||||
std::exit(-1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue