From 52017487726bb1e4227d8c249c1c7a1c98e1905e Mon Sep 17 00:00:00 2001 From: rwst Date: Tue, 21 Feb 2006 15:25:19 +0000 Subject: [PATCH] introduce orthogonal template declaration, fixes compiler warnings --- src/removeoverlap/pairingheap/PairingHeap.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 ); -- 2.30.2