Take functor by copy.

This commit is contained in:
Sandu Liviu Catalin committed 2021-01-31 14:09:01 +02:00
1 parent a5b83ddf9e
commit 4ca062d439
1 file changed
+1 -1
+1 -1
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);