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:
Alexandre Duret-Lutz 2015-10-02 11:47:21 +02:00
parent 20365e53f0
commit 54935cb9c7
4 changed files with 34 additions and 23 deletions

View file

@ -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)
{
}