From f1a252c45aa05f39839b6d4cb3c741a16d80c719 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Mon, 20 Dec 2010 13:24:43 +0200 Subject: [PATCH 1/1] =?utf8?q?=D0=92=D0=B8=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?utf8?q?=D0=B5=D0=BD=D0=BE=20=D0=BF=D0=BE=D0=BC=D0=B8=D0=BB=D0=BA=D1=83?= =?utf8?q?=20=D0=BA=D0=BE=D0=BC=D0=BF=D1=96=D0=BB=D1=8F=D1=86=D1=96=D1=97?= =?utf8?q?=20=D0=B2=D0=B8=D0=BA=D0=BB=D0=B8=D0=BA=D0=B0=D0=BD=D1=83=20?= =?utf8?q?=D1=82=D0=B8=D0=BC=20=D1=89=D0=BE=20bind2nd=20=D0=BF=D0=BE=D1=82?= =?utf8?q?=D1=80=D0=B5=D0=B1=D1=83=D1=94=20=D0=BA=D0=BE=D0=BD=D1=81=D1=82?= =?utf8?q?=D0=B0=D0=BD=D1=82=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=BF=D0=B5=D1=80?= =?utf8?q?=D1=88=D0=BE=D0=B3=D0=BE=20=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5?= =?utf8?q?=D1=82=D1=80=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- projects/stargazer/users.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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)); -- 2.44.2