mirror of
https://github.com/NixOS/nix.git
synced 2024-10-30 22:00:57 +00: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
@ -127,6 +127,8 @@ protected:
|
||||
|
||||
public:
|
||||
BaseError(const BaseError &) = default;
|
||||
BaseError& operator=(const BaseError &) = default;
|
||||
BaseError& operator=(BaseError &&) = default;
|
||||
|
||||
template<typename... Args>
|
||||
BaseError(unsigned int status, const Args & ... args)
|
||||
|
Loading…
Reference in New Issue
Block a user