Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
045ac809
Commit
045ac809
authored
Mar 06, 2021
by
Timo Koch
Browse files
[propertysystem] Use convenience alias is_same_v
parent
8218cf65
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/common/properties/propertysystem.hh
View file @
045ac809
...
@@ -42,7 +42,7 @@ namespace Dumux::Properties::Detail {
...
@@ -42,7 +42,7 @@ namespace Dumux::Properties::Detail {
//! check if a property P is defined
//! check if a property P is defined
template
<
class
P
>
template
<
class
P
>
constexpr
auto
isDefinedProperty
(
int
)
constexpr
auto
isDefinedProperty
(
int
)
->
decltype
(
std
::
integral_constant
<
bool
,
!
std
::
is_same
<
typename
P
::
type
,
UndefinedProperty
>
::
value
>
{})
->
decltype
(
std
::
integral_constant
<
bool
,
!
std
::
is_same
_v
<
typename
P
::
type
,
UndefinedProperty
>>
{})
{
return
{};
}
{
return
{};
}
//! fall back if a Property is defined
//! fall back if a Property is defined
...
...
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