Add noexcept to various constructors related to graphs.
* m4/gccwarn.m4: Enable -Wnoexcept. * src/graph/graph.hh, src/twa/acc.hh, src/twa/twagraph.hh: Add noexcept to various constructors.
This commit is contained in:
parent
20365e53f0
commit
54935cb9c7
4 changed files with 34 additions and 23 deletions
|
|
@ -38,20 +38,20 @@ namespace spot
|
|||
|
||||
mark_t() = default;
|
||||
|
||||
mark_t(value_t id)
|
||||
mark_t(value_t id) noexcept
|
||||
: id(id)
|
||||
{
|
||||
}
|
||||
|
||||
template<class iterator>
|
||||
mark_t(const iterator& begin, const iterator& end)
|
||||
mark_t(const iterator& begin, const iterator& end) noexcept
|
||||
{
|
||||
id = 0U;
|
||||
for (iterator i = begin; i != end; ++i)
|
||||
set(*i);
|
||||
}
|
||||
|
||||
mark_t(std::initializer_list<unsigned> vals)
|
||||
mark_t(std::initializer_list<unsigned> vals) noexcept
|
||||
: mark_t(vals.begin(), vals.end())
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,8 +34,7 @@ namespace spot
|
|||
struct SPOT_API twa_graph_state: public spot::state
|
||||
{
|
||||
public:
|
||||
twa_graph_state():
|
||||
spot::state()
|
||||
twa_graph_state() noexcept
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -78,12 +77,12 @@ namespace spot
|
|||
bdd cond;
|
||||
acc_cond::mark_t acc;
|
||||
|
||||
explicit twa_graph_edge_data()
|
||||
explicit twa_graph_edge_data() noexcept
|
||||
: cond(bddfalse), acc(0)
|
||||
{
|
||||
}
|
||||
|
||||
twa_graph_edge_data(bdd cond, acc_cond::mark_t acc = 0U)
|
||||
twa_graph_edge_data(bdd cond, acc_cond::mark_t acc = 0U) noexcept
|
||||
: cond(cond), acc(acc)
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue