diff --git a/dumux/discretization/box/subcontrolvolume.hh b/dumux/discretization/box/subcontrolvolume.hh
index b29f786ed3f55b478bca36bc98e2a6b89a11a91f..238ec13cb580bb492dc77d2445ec0e1e38cc1d41 100644
--- a/dumux/discretization/box/subcontrolvolume.hh
+++ b/dumux/discretization/box/subcontrolvolume.hh
@@ -83,7 +83,11 @@ public:
     // e.g. for integration
     Geometry geometry() const
     {
+#if DUNE_VERSION_NEWER(DUNE_COMMON,2,6)
         return Geometry(Dune::GeometryTypes::cube(dim), corners_);
+#else
+        return Geometry(Dune::GeometryType(Dune::GeometryType::cube, dim), corners_);
+#endif
     }
 
     //! The global index of this scv
diff --git a/dumux/discretization/box/subcontrolvolumeface.hh b/dumux/discretization/box/subcontrolvolumeface.hh
index 77af3b7ec4959af3525c070bb9dce48d7c107992..fe6066dc600ce21bca9e2730b7bd5d382d90094c 100644
--- a/dumux/discretization/box/subcontrolvolumeface.hh
+++ b/dumux/discretization/box/subcontrolvolumeface.hh
@@ -154,7 +154,11 @@ public:
     //! The geometry of the sub control volume face
     Geometry geometry() const
     {
+#if DUNE_VERSION_NEWER(DUNE_COMMON,2,6)
         return Geometry(Dune::GeometryTypes::cube(Geometry::mydimension), corners_);
+#else
+        return Geometry(Dune::GeometryType(Dune::GeometryType::cube, Geometry::mydimension), corners_);
+#endif
     }
 
 private: