]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
From email:
authorrobertc <>
Sun, 3 Aug 2003 16:37:30 +0000 (16:37 +0000)
committerrobertc <>
Sun, 3 Aug 2003 16:37:30 +0000 (16:37 +0000)
> > 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<StoreClientsStats>(clients, statsVisitor);

Rigth, now MSVC++ is happy:

src/MemObject.cc

index cc51c5bd92b1a9354805465ca7bd1010ef190838..7871b13e02082fa46e9eb2f08f327e472cc8fe48 100644 (file)
@@ -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<StoreClientStats>(clients, statsVisitor);
 }
 
 off_t
@@ -282,7 +282,7 @@ MemObject::lowestMemReaderOffset() const
 {
     LowestMemReader lowest (endOffset() + 1);
 
-    for_each (clients, lowest);
+    for_each <LowestMemReader>(clients, lowest);
 
     return lowest.current;
 }