move std function
This commit is contained in:
@@ -57,7 +57,7 @@ public:
|
||||
|
||||
//! \~english Sets a callback invoked when the machine finishes.
|
||||
//! \~russian Задает callback-функцию, вызываемую при завершении машины.
|
||||
void setOnFinish(std::function<void()> f) { on_finish = f; }
|
||||
void setOnFinish(std::function<void()> f) { on_finish = std::move(f); }
|
||||
|
||||
|
||||
//! \~english Posts an event to active states and triggers the first matching transition.
|
||||
|
||||
Reference in New Issue
Block a user