move std function

This commit is contained in:
2026-03-20 16:31:30 +03:00
parent 4537e40832
commit 96c22e1184
28 changed files with 145 additions and 131 deletions

View File

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