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

remove void_t from concepts

parent 482abe13
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
#include <dune/common/typetraits.hh> #include <dune/common/typetraits.hh>
#include <dune/common/version.hh> #include <dune/common/version.hh>
#include "localfunction.hh" #include <dune/vtk/localfunction.hh>
#include "types.hh" #include <dune/vtk/types.hh>
#include "utility/arguments.hh" #include <dune/vtk/utility/arguments.hh>
namespace Dune namespace Dune
{ {
...@@ -29,14 +29,14 @@ namespace Dune ...@@ -29,14 +29,14 @@ namespace Dune
using LocalDomain = typename Element::Geometry::LocalCoordinate; using LocalDomain = typename Element::Geometry::LocalCoordinate;
template <class GF> template <class GF>
using IsGridFunction = std::void_t<decltype(localFunction(std::declval<GF>()))>; using IsGridFunction = decltype(localFunction(std::declval<GF>()));
template <class LocalFunction, class LF = std::decay_t<LocalFunction>> template <class LocalFunction, class LF = std::decay_t<LocalFunction>>
using IsLocalFunction = std::void_t<decltype(( using IsLocalFunction = decltype((
std::declval<LF&>().bind(std::declval<Element>()), std::declval<LF&>().bind(std::declval<Element>()),
std::declval<LF&>().unbind(), std::declval<LF&>().unbind(),
std::declval<LF>()(std::declval<LocalDomain>()), std::declval<LF>()(std::declval<LocalDomain>()),
0))>; 0));
template <class F, class D> template <class F, class D>
using Range = std::decay_t<std::result_of_t<F(D)>>; using Range = std::decay_t<std::result_of_t<F(D)>>;
......
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