tgba: simplify usage of named properties
* src/tgba/tgba.hh, src/tgba/tgba.cc (set_named_prop): Add a template version. (get_named_prop): Hide the old version, and supply a template version that casts. * src/bin/ltlcross.cc, src/hoaparse/hoaparse.yy, src/tgbaalgos/hoa.cc, src/tgbaalgos/product.cc: Adjust usage.
This commit is contained in:
parent
5a1e38d90f
commit
61edf7f41d
6 changed files with 23 additions and 12 deletions
|
|
@ -359,9 +359,7 @@ header-item: "States:" INT
|
|||
}
|
||||
| "name:" STRING
|
||||
{
|
||||
res.h->aut->set_named_prop("automaton-name", $2, [](void* name) {
|
||||
delete static_cast<std::string*>(name);
|
||||
});
|
||||
res.h->aut->set_named_prop("automaton-name", $2);
|
||||
}
|
||||
| "properties:" properties
|
||||
| HEADERNAME header-spec
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue