From 3652363d6ea8b1290b520dbb817d40d74aecd99d Mon Sep 17 00:00:00 2001 From: Ralf Stephan Date: Tue, 21 Feb 2006 15:25:19 +0000 Subject: introduce orthogonal template declaration, fixes compiler warnings (bzr r172) --- src/removeoverlap/pairingheap/PairingHeap.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/removeoverlap') diff --git a/src/removeoverlap/pairingheap/PairingHeap.h b/src/removeoverlap/pairingheap/PairingHeap.h index 1c0160141..f8c3abf35 100644 --- a/src/removeoverlap/pairingheap/PairingHeap.h +++ b/src/removeoverlap/pairingheap/PairingHeap.h @@ -44,7 +44,9 @@ class PairingHeap; template class PairNode { - friend std::ostream& operator <<(std::ostream &os,const PairingHeap &b); + template + friend std::ostream& operator <<(std::ostream &os,const PairingHeap &b); + T element; PairNode *leftChild; PairNode *nextSibling; @@ -65,7 +67,8 @@ public: template class PairingHeap { - friend std::ostream& operator <<(std::ostream &os,const PairingHeap &b); + template + friend std::ostream& operator <<(std::ostream &os,const PairingHeap &b); public: PairingHeap( bool (*lessThan)(T const &lhs, T const &rhs) ); PairingHeap( const PairingHeap & rhs ); -- cgit v1.2.3