diff --git a/dumux/porousmediumflow/compositional/primaryvariableswitch.hh b/dumux/porousmediumflow/compositional/primaryvariableswitch.hh
index 80a2420a587951f2faa9ea111b815837c371ec84..2af0fbf74956dc831b285bc0ccc0247ac6ff6870 100644
--- a/dumux/porousmediumflow/compositional/primaryvariableswitch.hh
+++ b/dumux/porousmediumflow/compositional/primaryvariableswitch.hh
@@ -49,6 +49,7 @@ public:
     template<typename... Args> bool update(Args&&...) { return false; }
     template<typename... Args> void updateSwitchedVolVars(Args&&...) {}
     template<typename... Args> void updateSwitchedFluxVarsCache(Args&&...) {}
+    template<typename... Args> void updateDirichletConstraints(Args&&...) {}
 };
 
 /*!