Commit b2687dc3 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Merge branch 'feature/deprecated-void-t' into 'master'

Remove 'Dune::void_t' in favor of simple concept check

See merge request extensions/dune-vtk!26
parents 45670206 08239e08
......@@ -26,7 +26,7 @@ namespace Dune
using LocalCoordinate = typename Entity::Geometry::LocalCoordinate;
template <class LF, class E>
using HasBind = decltype(std::declval<LF>().bind(std::declval<E>()));
using HasBind = decltype((std::declval<LF>().bind(std::declval<E>()), true));
struct RangeProxy
......@@ -62,7 +62,7 @@ namespace Dune
/// Construct the Vtk::LocalFunction from any function object that has a bind(element) method.
template <class LF,
disableCopyMove<Self, LF> = 0,
class = void_t<HasBind<LF,Entity>> >
HasBind<LF,Entity> = true>
explicit LocalFunction (LF&& lf)
: localFct_(std::make_shared<LocalFunctionWrapper<GridView,LF>>(std::forward<LF>(lf)))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment