Skip to content
Snippets Groups Projects
Commit c20e9e1f authored by Felix Gruber's avatar Felix Gruber Committed by Christoph Grüninger
Browse files

[bugfix] fix Dune::enable_if

My previous wrapper implementation around std::enable_if didn't work
when B was false, as type was then defined to a type that was SFINAEd
away.
parent bd3bc638
No related branches found
No related tags found
No related merge requests found
......@@ -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;
};
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment