diff --git a/dune/common/typetraits.hh b/dune/common/typetraits.hh index 478d97cda206ecb03e42cc385c0a70a583f37f9c..534196b2ea92e7b56747c78beea2737efe8a5d92 100644 --- a/dune/common/typetraits.hh +++ b/dune/common/typetraits.hh @@ -137,8 +137,12 @@ namespace Dune template<bool B, class T = void> struct DUNE_DEPRECATED_MSG("Use std::enable_if instead!") enable_if + {}; + + template<class T> + struct DUNE_DEPRECATED_MSG("Use std::enable_if instead!") enable_if<true,T> { - typedef DUNE_DEPRECATED_MSG("Use std::enable_if instead!") typename std::enable_if<B,T>::type type; + typedef DUNE_DEPRECATED_MSG("Use std::enable_if instead!") T type; }; /**