Fixes a linking problem with the new SatSolverConstructor on Mac.
authorTim King <taking@cs.nyu.edu>
Thu, 29 Mar 2012 19:38:42 +0000 (19:38 +0000)
committerTim King <taking@cs.nyu.edu>
Thu, 29 Mar 2012 19:38:42 +0000 (19:38 +0000)
src/prop/bvminisat/bvminisat.h
src/prop/minisat/minisat.h
src/prop/sat_solver_factory.cpp

index d192b34b703b223edb80c90704e54739c9105ae9..4ca1164c0ad05244d24ac8117f322ca05c4dbb16 100644 (file)
@@ -79,8 +79,6 @@ public:
   Statistics d_statistics;
 };
 
-template class SatSolverConstructor<BVMinisatSatSolver>;
-
 }
 }
 
index 3bd690cc78800b2d07dd46ecbdc1a840dc4ec8e9..9cf75a12e39989d350261edab539b725bc13896d 100644 (file)
@@ -96,8 +96,6 @@ public:
 
 };
 
-template class SatSolverConstructor<MinisatSatSolver>;
-
 } // prop namespace
 } // cvc4 namespace
 
index fa787451d6511607c835c2ce2fea3a6577ca6967..e6ae5d1e7f2c4eb8b2ff108109bfe8ef647b61a4 100644 (file)
 #include "prop/minisat/minisat.h"
 #include "prop/bvminisat/bvminisat.h"
 
-using namespace CVC4;
-using namespace prop;
+namespace CVC4 {
+namespace prop {
+
+template class SatSolverConstructor<MinisatSatSolver>;
+template class SatSolverConstructor<BVMinisatSatSolver>;
 
 BVSatSolverInterface* SatSolverFactory::createMinisat() {
   return new BVMinisatSatSolver();
@@ -45,3 +48,5 @@ void SatSolverFactory::getSolverIds(std::vector<std::string>& solvers) {
   SatSolverRegistry::getSolverIds(solvers);
 }
 
+} /* namespace CVC4::prop */
+} /* namespace CVC4 */