mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 12:06:01 +01:00
Add BaseError assignment operators
The move assignment was implicitly generated and used in
src/libstore/build/goal.cc:90:22:
90 | this->ex = std::move(*ex);
Clang warns about this generated method being deprecated, so making
them explicit fixes the warning.
This commit is contained in:
parent
b57c361097
commit
f070d68c32
1 changed files with 2 additions and 0 deletions
|
|
@ -127,6 +127,8 @@ protected:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
BaseError(const BaseError &) = default;
|
BaseError(const BaseError &) = default;
|
||||||
|
BaseError& operator=(const BaseError &) = default;
|
||||||
|
BaseError& operator=(BaseError &&) = default;
|
||||||
|
|
||||||
template<typename... Args>
|
template<typename... Args>
|
||||||
BaseError(unsigned int status, const Args & ... args)
|
BaseError(unsigned int status, const Args & ... args)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue