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())
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue