...
This commit is contained in:
@@ -164,6 +164,27 @@ public:
|
||||
init(telemetry, hardware, prohibited_zone);
|
||||
}
|
||||
|
||||
|
||||
MccSimpleGuidingModel(MccSimpleGuidingModel&& other)
|
||||
: _guidingFunc(std::move(other._guidingFunc)),
|
||||
_doCorrection(other._doCorrection.load()),
|
||||
_stopRequested(other._stopRequested.load())
|
||||
{
|
||||
}
|
||||
|
||||
MccSimpleGuidingModel& operator=(MccSimpleGuidingModel&& other)
|
||||
{
|
||||
if (this == &other) {
|
||||
return *this;
|
||||
}
|
||||
|
||||
_guidingFunc = std::move(other._guidingFunc);
|
||||
_doCorrection = other._doCorrection.load();
|
||||
_stopRequested = other._stopRequested.load();
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
virtual ~MccSimpleGuidingModel()
|
||||
{
|
||||
logDebug(std::format("Delete 'MccSimpleGuidingModel' class instance ({})", (void*)this));
|
||||
@@ -333,4 +354,6 @@ protected:
|
||||
}
|
||||
};
|
||||
|
||||
// static_assert(std::movable<MccSimpleGuidingModel<>>);
|
||||
|
||||
} // namespace mcc
|
||||
|
||||
Reference in New Issue
Block a user