/aclocal.m4
*~
\#*\#
-/config/
*.swp
--- /dev/null
+../../../config/ax_cxx_compile_stdcxx.m4
\ No newline at end of file
--- /dev/null
+../../../config/ax_cxx_compile_stdcxx_11.m4
\ No newline at end of file
AC_PROG_CXX
AC_PROG_CC
+# C++11 support in the compiler is now mandatory. Check for support and add
+# switches if necessary.
+AX_CXX_COMPILE_STDCXX_11([ext], [mandatory])
+
# Checks for libraries.
# FIXME: Replace `main' with a function in `-lgmp':
AC_CHECK_LIB([gmp], [__gmpz_init])
#define sc2__expr_h
#include <stdint.h>
-#include <ext/hash_set>
#include <iostream>
#include <map>
#include <string>
+#include <unordered_set>
#include <vector>
+
#include "chunking_memory_management.h"
#include "gmp.h"
class Expr;
class SymExpr;
-namespace __gnu_cxx {
-template <>
-struct hash<Expr *> {
+struct hashExprPtr {
size_t operator()(const Expr *x) const {
return reinterpret_cast<uintptr_t>(x);
}
};
-}
struct eqExprPtr {
bool operator()(const Expr *e1, const Expr *e2) const { return e1 == e2; }
};
-typedef __gnu_cxx::hash_set<Expr *, __gnu_cxx::hash<Expr *>, eqExprPtr>
- expr_ptr_set_t;
+typedef std::unordered_set<Expr *, hashExprPtr, eqExprPtr> expr_ptr_set_t;
class Expr {
protected:
**/
#include "theory/arith/approx_simplex.h"
+#include <math.h>
#include <cfloat>
#include <cmath>
-#include <map>
-#include <math.h>
+#include <unordered_set>
#include "base/output.h"
#include "cvc4autoconfig.h"
const DenseMap<Rational>& constructedLhs = d_pad.d_cut.lhs;
const Rational& constructedRhs = d_pad.d_cut.rhs;
- hash_set<ArithVar> visited;
+ std::unordered_set<ArithVar> visited;
if(constructedLhs.empty()){
Debug("approx::checkCutOnPad") << "its empty?" <<endl;