[Debtags-commits] [svn] r1701 - in tagcoll/2.0: . tagcoll

Enrico Zini enrico at costa.debian.org
Fri May 5 08:46:17 UTC 2006


Author: enrico
Date: Fri May  5 08:46:17 2006
New Revision: 1701

Modified:
   tagcoll/2.0/   (props changed)
   tagcoll/2.0/tagcoll/PatchCollection.cc
   tagcoll/2.0/tagcoll/ReadonlyCollection.h
Log:
 r2582 at viaza:  enrico | 2006-05-05 10:44:39 +0200
 Fixed some compiler errors, there's one I don't understand


Modified: tagcoll/2.0/tagcoll/PatchCollection.cc
==============================================================================
--- tagcoll/2.0/tagcoll/PatchCollection.cc	(original)
+++ tagcoll/2.0/tagcoll/PatchCollection.cc	Fri May  5 08:46:17 2006
@@ -156,7 +156,7 @@
 }
 
 template<typename ITEM, typename TAG, typename OUT>
-class UnpatchedOnly : wibble::mixin::OutputIterator< UnpatchedOnly<ITEM, TAG, OUT> >
+class UnpatchedOnly : public wibble::mixin::OutputIterator< UnpatchedOnly<ITEM, TAG, OUT> >
 {
 protected:
 	OUT out;

Modified: tagcoll/2.0/tagcoll/ReadonlyCollection.h
==============================================================================
--- tagcoll/2.0/tagcoll/ReadonlyCollection.h	(original)
+++ tagcoll/2.0/tagcoll/ReadonlyCollection.h	Fri May  5 08:46:17 2006
@@ -39,7 +39,7 @@
 class ReadonlyCollection
 {
 	template<typename OUT>
-	class Forwarder : Consumer<ITEM, TAG>
+	class Forwarder : public Consumer<ITEM, TAG>
 	{
 		OUT out;
 
@@ -268,9 +268,10 @@
 	virtual void output(Consumer<ITEM, TAG>& consumer) const = 0;
 
 	template<typename OUT>
-	void outputToIterator(OUT& cons) const
+	void outputToIterator(const OUT& cons) const
 	{
-		output(Forwarder<OUT>(cons));
+		Forwarder<OUT> forwarder(cons);
+		output(forwarder);
 	}
 
 	/**



More information about the Debtags-commits mailing list