Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
dune-vtk
Commits
08239e08
Commit
08239e08
authored
Mar 13, 2021
by
Praetorius, Simon
Browse files
Remove 'Dune::void_t' in favor of simple concept check
parent
847c3e5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
dune/vtk/localfunction.hh
View file @
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
)
);
private:
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
)))
{}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment