diff --git a/dune/fufem/functiontools/boundarydofs.hh b/dune/fufem/functiontools/boundarydofs.hh
index 65dcfb6d3929c7d7d5547a890e664aee9fb7da62..57dd6b9468f4407ededfc2c8caf46c8d27992d03 100644
--- a/dune/fufem/functiontools/boundarydofs.hh
+++ b/dune/fufem/functiontools/boundarydofs.hh
@@ -3,6 +3,8 @@
 #ifndef DUNE_FUFEM_FUNCTIONTOOLS_BOUNDARYDOFS_HH
 #define DUNE_FUFEM_FUNCTIONTOOLS_BOUNDARYDOFS_HH
 
+#include <type_traits>
+
 #include <dune/common/bitsetvector.hh>
 #include <dune/common/version.hh>
 
@@ -20,7 +22,7 @@ void constructBoundaryDofs(const BoundaryPatch<GridView>& boundaryPatch,
                            Dune::BitSetVector<blocksize>& boundaryDofs)
 {
     // Check consistency of the input
-    static_assert((Dune::is_same<GridView, typename Basis::GridView>::value),
+    static_assert((std::is_same<GridView, typename Basis::GridView>::value),
                        "BoundaryPatch and global basis must be for the same grid view!");
 
     // ////////////////////////////////////////////////////////