move std function
This commit is contained in:
@@ -731,7 +731,7 @@ public:
|
||||
//! \~\brief
|
||||
//! \~english Constructor that takes a function to execute
|
||||
//! \~russian Конструктор, который принимает функцию для выполнения
|
||||
explicit PIScopeExitCall(std::function<void()> f): func(f) {}
|
||||
explicit PIScopeExitCall(std::function<void()> f): func(std::move(f)) {}
|
||||
|
||||
//! \~\brief
|
||||
//! \~english Destructor that executes the function if it exists
|
||||
|
||||
Reference in New Issue
Block a user