diff --git a/dune/gfe/cosseratenergystiffness.hh b/dune/gfe/cosseratenergystiffness.hh
index a51ccd8534d2cb5ce22a75c7d55e9dc62ff3e982..eeba17e580acbf0a1df4f6c21dfcda9ab8597321 100644
--- a/dune/gfe/cosseratenergystiffness.hh
+++ b/dune/gfe/cosseratenergystiffness.hh
@@ -307,7 +307,7 @@ energy(const Entity& element,
         /////////////////////////////////////////////////////////
         // compute U, the Cosserat strain
         /////////////////////////////////////////////////////////
-        dune_static_assert(dim>=gridDim, "Codim of the grid must be nonnegative");
+        static_assert(dim>=gridDim, "Codim of the grid must be nonnegative");
 
         //
         Dune::FieldMatrix<field_type,dim,dim> R;