mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-30 16:35:16 +08: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
@ -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…
x
Reference in New Issue
Block a user