How to do SFINAE depending on function concepts
I wanted to implement a function that is enable if the given argument is a Dune::Functions::GridFunction.
I thought I can use the concept GridFunction
for that. However, isGridFunction
takes a lot of template arguments.
Is it possible to retrieve all these template arguments from the function type, so defaults could be provided?
I want to write something like
template<class F,
typename std::enable_if_t<Concept::isGridFunction<F>(), int>=0>
ReturnType do(F&& f) {}
Edited by Timo Koch