C++20: fix warnings reported by g++ 10.1
* spot/tl/formula.hh (formula::operator bool): Mark as noexcept. * bin/common_trans.hh, bin/common_trans.cc: Use std::atomic instead of volatile.
This commit is contained in:
parent
a7ff5b4eed
commit
368acaad28
3 changed files with 8 additions and 7 deletions
|
|
@ -842,7 +842,7 @@ namespace spot
|
|||
return ptr_ != nullptr;
|
||||
}
|
||||
|
||||
operator bool() const
|
||||
operator bool() const noexcept
|
||||
{
|
||||
return ptr_ != nullptr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue