From 685a1adbf8ca169b94f0e5a5be82d2025f556af8 Mon Sep 17 00:00:00 2001
From: Tobias Leibner <tobias.leibner@googlemail.com>
Date: Tue, 25 Nov 2014 17:56:49 +0100
Subject: [PATCH] [playground.spaces.dg.pdelab] fix copy failure, refs #25

---
 dune/gdt/playground/spaces/dg/pdelab.hh | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/dune/gdt/playground/spaces/dg/pdelab.hh b/dune/gdt/playground/spaces/dg/pdelab.hh
index becd7af4a..c391ed565 100644
--- a/dune/gdt/playground/spaces/dg/pdelab.hh
+++ b/dune/gdt/playground/spaces/dg/pdelab.hh
@@ -146,7 +146,7 @@ public:
   PdelabBased(GridViewType gV)
     : grid_view_(gV)
     , fe_map_()
-    , backend_(const_cast<GridViewType&>(grid_view_), fe_map_)
+    , backend_(grid_view_, fe_map_)
     , mapper_(backend_)
     , communicator_(CommunicationChooser<GridViewImp>::create(grid_view_))
     , communicator_prepared_(false)
@@ -159,9 +159,9 @@ public:
    */
   PdelabBased(const ThisType& other)
     : grid_view_(other.grid_view_)
-    , fe_map_(other.fe_map_)
-    , backend_(other.backend_)
-    , mapper_(other.mapper_)
+    , fe_map_()
+    , backend_(grid_view_, fe_map_)
+    , mapper_(backend_)
     , communicator_(CommunicationChooser<GridViewImp>::create(grid_view_))
     , communicator_prepared_(false)
   {
@@ -225,7 +225,7 @@ public:
   } // ... communicator(...)
 
 private:
-  const GridViewType grid_view_;
+  GridViewType grid_view_;
   const FEMapType fe_map_;
   const BackendType backend_;
   const MapperType mapper_;
-- 
GitLab