mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Move constructors/operators should be marked noexcept to avoid the compiler picking the copy constructor instead (performance-noexcept-move-constructor)
This commit is contained in:
parent
38333aac91
commit
95d2af4501
6 changed files with 6 additions and 6 deletions
|
@ -76,7 +76,7 @@ CardinalityCounter::CardinalityCounter(CardinalityCounter& other)
|
|||
p = other.p;
|
||||
}
|
||||
|
||||
CardinalityCounter::CardinalityCounter(CardinalityCounter&& o)
|
||||
CardinalityCounter::CardinalityCounter(CardinalityCounter&& o) noexcept
|
||||
{
|
||||
V = o.V;
|
||||
alpha_m = o.alpha_m;
|
||||
|
|
|
@ -43,7 +43,7 @@ public:
|
|||
/**
|
||||
* Move-Constructor
|
||||
*/
|
||||
CardinalityCounter(CardinalityCounter&& o);
|
||||
CardinalityCounter(CardinalityCounter&& o) noexcept;
|
||||
|
||||
/**
|
||||
* Constructor for a known number of buckets.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue