From: rwst Date: Tue, 21 Feb 2006 15:25:19 +0000 (+0000) Subject: introduce orthogonal template declaration, fixes compiler warnings X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=52017487726bb1e4227d8c249c1c7a1c98e1905e;p=inkscape.git introduce orthogonal template declaration, fixes compiler warnings --- 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 );