X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/bc4929f4d2f051277f116d6d582ccdb371f27595..1ed49c21260edc5b40aa2d0d4b8486bc1928f21b:/projects/stargazer/users.cpp?ds=inline diff --git a/projects/stargazer/users.cpp b/projects/stargazer/users.cpp index 068193ef..f97a029f 100644 --- a/projects/stargazer/users.cpp +++ b/projects/stargazer/users.cpp @@ -489,7 +489,13 @@ if (isRunning) printfd(__FILE__, "Before USERS::Run()\n"); for_each(users.begin(), users.end(), mem_fun_ref(&USER::Run)); -for_each(users.begin(), users.end(), bind2nd(mem_fun_ref(&USER::WriteDetailStat), true)); + +// 'cause bind2st accepts only constant first param +for (list::iterator it = users.begin(); + it != users.end(); + ++it) + it->WriteDetailStat(true); + for_each(users.begin(), users.end(), mem_fun_ref(&USER::WriteStat)); for_each(users.begin(), users.end(), mem_fun_ref(&USER::WriteConf));