We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db496e8 commit 5a0c488Copy full SHA for 5a0c488
src/util/guard.cpp
@@ -94,8 +94,10 @@ void guardt::add(const exprt &expr)
94
op.push_back(expr);
95
}
96
97
-guardt &operator -= (guardt &g1, const guardt &g2)
+guardt& guardt::operator -= (const guardt &g2)
98
{
99
+ guardt &g1=*this;
100
+
101
if(g1.id()!=ID_and || g2.id()!=ID_and)
102
return g1;
103
src/util/guard.h
@@ -62,7 +62,7 @@ class guardt:public exprt
62
void make_false();
63
#endif
64
65
- friend guardt &operator -= (guardt &g1, const guardt &g2);
+ guardt& operator -= (const guardt &g2);
66
guardt& logical_or(const guardt &g2, const namespacet &ns);
67
68
#if 0
0 commit comments