1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +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>
SQRESULT Foreach(F&& func) const
SQRESULT Foreach(F func) const
{
HSQUIRRELVM vm = SqVM();
const StackGuard sg(vm);