mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
deal with compiler warnings
This commit is contained in:
parent
88fbf6510f
commit
857557ad93
8 changed files with 29 additions and 29 deletions
|
@ -30,7 +30,7 @@ Revision History:
|
|||
template<class Set1, class Set2>
|
||||
void set_intersection(Set1 & tgt, const Set2 & src) {
|
||||
svector<typename Set1::data> to_remove;
|
||||
for (typename Set1::data const& itm : tgt)
|
||||
for (auto itm : tgt)
|
||||
if (!src.contains(itm))
|
||||
to_remove.push_back(itm);
|
||||
while (!to_remove.empty()) {
|
||||
|
@ -41,7 +41,7 @@ void set_intersection(Set1 & tgt, const Set2 & src) {
|
|||
|
||||
template<class Set>
|
||||
void set_difference(Set & tgt, const Set & to_remove) {
|
||||
for (auto const& itm : to_remove)
|
||||
for (auto itm : to_remove)
|
||||
tgt.remove(itm);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue