mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 05:53:59 +00:00
Mark completion move ctor as noexcept
Move constructors aren't used unless we mark this ctor as noexcept.
This commit is contained in:
parent
e3643c610f
commit
4c08cbd050
1 changed files with 3 additions and 2 deletions
|
@ -78,8 +78,9 @@ class completion_t {
|
|||
completion_t(const completion_t &);
|
||||
completion_t &operator=(const completion_t &);
|
||||
|
||||
completion_t(completion_t &&);
|
||||
completion_t &operator=(completion_t &&);
|
||||
// noexcepts are required for push_back to use the move ctor.
|
||||
completion_t(completion_t &&) noexcept;
|
||||
completion_t &operator=(completion_t &&) noexcept;
|
||||
|
||||
// Compare two completions. No operating overlaoding to make this always explicit (there's
|
||||
// potentially multiple ways to compare completions).
|
||||
|
|
Loading…
Reference in a new issue