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:
Robert Hensing 2024-07-12 14:25:16 +02:00
parent b57c361097
commit f070d68c32

View File

@ -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)