From ec339dff555337262eebf464bf2ed1e8cb3c68ea Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Thu, 21 Apr 2016 07:50:00 +0200
Subject: [PATCH] [bboxtree] Be friends with other AABB trees to call their
 private methods

---
 dumux/common/boundingboxtree.hh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dumux/common/boundingboxtree.hh b/dumux/common/boundingboxtree.hh
index 74a890739a..87cda092be 100644
--- a/dumux/common/boundingboxtree.hh
+++ b/dumux/common/boundingboxtree.hh
@@ -758,6 +758,10 @@ private:
 template <class GridView>
 class BoundingBoxTree
 {
+    // be friends with all other kinds bounding box trees so that
+    // they can call each others private methods
+    template <class OtherGridView> friend class BoundingBoxTree;
+
     static const int dim = GridView::dimension;
     static const int dimworld = GridView::dimensionworld;
     typedef typename GridView::template Codim<0>::Entity Element;
-- 
GitLab