C++ incompatibilities.
This commit is contained in:
parent
e843d8f536
commit
6d2e2597b1
@ -131,7 +131,7 @@ readQueryAndEvidence (
|
||||
}
|
||||
Horus::VarId vid = Horus::Util::stringToUnsigned (arg);
|
||||
Horus::VarNode* queryVar = fg.getVarNode (vid);
|
||||
if (queryVar == false) {
|
||||
if (queryVar == nullptr) {
|
||||
std::cerr << "Error: unknow variable with id " ;
|
||||
std::cerr << "`" << vid << "'." << std::endl;
|
||||
exit (EXIT_FAILURE);
|
||||
@ -153,7 +153,7 @@ readQueryAndEvidence (
|
||||
}
|
||||
Horus::VarId vid = Horus::Util::stringToUnsigned (leftArg);
|
||||
Horus::VarNode* observedVar = fg.getVarNode (vid);
|
||||
if (observedVar == false) {
|
||||
if (observedVar == nullptr) {
|
||||
std::cerr << "Error: unknow variable with id " ;
|
||||
std::cerr << "`" << vid << "'." << std::endl;
|
||||
exit (EXIT_FAILURE);
|
||||
|
@ -119,7 +119,7 @@ public:
|
||||
|
||||
// -- use this function instead:
|
||||
template<class V>
|
||||
friend Clause* Clause_new(const V& ps, bool learnt = false);
|
||||
friend Clause* Clause_new(const V& ps, bool learnt);
|
||||
|
||||
int size () const { return size_etc >> 3; }
|
||||
void shrink (int i) { assert(i <= size()); size_etc = (((size_etc >> 3) - i) << 3) | (size_etc & 7); }
|
||||
|
Reference in New Issue
Block a user