1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-19 03:57:14 +01:00

Take functor by copy.

This commit is contained in:
Sandu Liviu Catalin 2021-01-31 14:09:01 +02:00
parent a5b83ddf9e
commit 4ca062d439

View File

@ -625,7 +625,7 @@ public:
/// ///
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
template<class F> template<class F>
SQRESULT Foreach(F&& func) const SQRESULT Foreach(F func) const
{ {
HSQUIRRELVM vm = SqVM(); HSQUIRRELVM vm = SqVM();
const StackGuard sg(vm); const StackGuard sg(vm);