...
This commit is contained in:
@@ -150,10 +150,25 @@ public:
|
||||
init(telemetry, hardware, prohibited_zone);
|
||||
}
|
||||
|
||||
MccSimpleSlewModel(MccSimpleSlewModel&&) = default;
|
||||
MccSimpleSlewModel& operator=(MccSimpleSlewModel&&) = default;
|
||||
MccSimpleSlewModel(const MccSimpleSlewModel&) = default;
|
||||
MccSimpleSlewModel& operator=(const MccSimpleSlewModel&) = default;
|
||||
MccSimpleSlewModel(MccSimpleSlewModel&& other)
|
||||
: _stopRequested(other._stopRequested.load()), _slewFunc(std::move(other._slewFunc))
|
||||
{
|
||||
}
|
||||
|
||||
MccSimpleSlewModel& operator=(MccSimpleSlewModel&& other)
|
||||
{
|
||||
if (this == &other) {
|
||||
return *this;
|
||||
}
|
||||
|
||||
_stopRequested = other._stopRequested.load();
|
||||
_slewFunc = std::move(_slewFunc);
|
||||
|
||||
return *this;
|
||||
};
|
||||
|
||||
MccSimpleSlewModel(const MccSimpleSlewModel&) = delete;
|
||||
MccSimpleSlewModel& operator=(const MccSimpleSlewModel&) = delete;
|
||||
|
||||
virtual ~MccSimpleSlewModel()
|
||||
{
|
||||
@@ -422,5 +437,6 @@ protected:
|
||||
}
|
||||
};
|
||||
|
||||
static_assert(std::movable<MccSimpleSlewModel<>>);
|
||||
|
||||
} // namespace mcc
|
||||
|
||||
Reference in New Issue
Block a user