building spot::acc_cond::mark_t from unsigned is deprecated

* spot/twa/acc.hh: here
This commit is contained in:
Maximilien Colange 2018-05-22 13:56:11 +02:00
parent 17532163d2
commit f4476e78c8

View file

@ -66,6 +66,19 @@ namespace spot
{ {
} }
SPOT_DEPRECATED("use brace initialization instead")
mark_t(unsigned i)
{
unsigned j = 0;
while (i)
{
if (i & 1U)
this->set(j);
++j;
i >>= 1;
}
}
static mark_t all() static mark_t all()
{ {
mark_t res({}); mark_t res({});