mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
test, bench: make prevector and checkqueue swap member functions noexcept
Reason: A swap must not fail; when a class has a swap member function, it should be declared noexcept. https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c84-a-swap-function-must-not-fail
This commit is contained in:
parent
abc1ee5090
commit
e5485e8e4b
5 changed files with 23 additions and 10 deletions
|
|
@ -26,7 +26,7 @@ struct DumbCheck {
|
|||
return result;
|
||||
}
|
||||
|
||||
void swap(DumbCheck& x)
|
||||
void swap(DumbCheck& x) noexcept
|
||||
{
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue