acc: make mark_t::operator bool() explicit

This avoids a few conversion problems, and also made the bug of
sbacc (fixed by 37fc948be4) obvious.

Reported by Thomas Medioni.

* spot/twa/acc.hh (mark_t::operator bool): Make it explicit.
* spot/twaalgos/remfin.cc: Adjust.
This commit is contained in:
Alexandre Duret-Lutz 2017-03-03 13:26:33 +01:00
parent 37fc948be4
commit cf5d2c2b32
3 changed files with 9 additions and 3 deletions

View file

@ -98,7 +98,7 @@ namespace spot
return id >= o.id;
}
operator bool() const
explicit operator bool() const
{
return id != 0;
}