summaryrefslogtreecommitdiffstats
path: root/src/removeoverlap
diff options
context:
space:
mode:
Diffstat (limited to 'src/removeoverlap')
-rw-r--r--src/removeoverlap/pairingheap/PairingHeap.h7
1 files 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 T>
class PairNode
{
- friend std::ostream& operator <<(std::ostream &os,const PairingHeap<T> &b);
+ template <class U>
+ friend std::ostream& operator <<(std::ostream &os,const PairingHeap<U> &b);
+
T element;
PairNode *leftChild;
PairNode *nextSibling;
@@ -65,7 +67,8 @@ public:
template <class T>
class PairingHeap
{
- friend std::ostream& operator <<(std::ostream &os,const PairingHeap<T> &b);
+ template <class U>
+ friend std::ostream& operator <<(std::ostream &os,const PairingHeap<U> &b);
public:
PairingHeap( bool (*lessThan)(T const &lhs, T const &rhs) );
PairingHeap( const PairingHeap & rhs );