From: robertc <> Date: Sun, 3 Aug 2003 16:37:30 +0000 (+0000) Subject: From email: X-Git-Tag: SQUID_3_0_PRE3~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4cbb7fa8ab5aca16fa9ed3567fe41144afe00b05;p=thirdparty%2Fsquid.git From email: > > MemObject.cc > >Looks like another limitation. taking the first one: there is a for_each >template that is explicitly for dlink_list. You might try >for_each(clients, statsVisitor); Rigth, now MSVC++ is happy: --- diff --git a/src/MemObject.cc b/src/MemObject.cc index cc51c5bd92..7871b13e02 100644 --- a/src/MemObject.cc +++ b/src/MemObject.cc @@ -1,6 +1,6 @@ /* - * $Id: MemObject.cc,v 1.10 2003/07/23 10:12:33 robertc Exp $ + * $Id: MemObject.cc,v 1.11 2003/08/03 10:37:30 robertc Exp $ * * DEBUG: section 19 Store Memory Primitives * AUTHOR: Robert Collins @@ -249,7 +249,7 @@ MemObject::stat (StoreEntry *s) const StoreClientStats statsVisitor(s); - for_each(clients, statsVisitor); + for_each(clients, statsVisitor); } off_t @@ -282,7 +282,7 @@ MemObject::lowestMemReaderOffset() const { LowestMemReader lowest (endOffset() + 1); - for_each (clients, lowest); + for_each (clients, lowest); return lowest.current; }