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
278d7fce
Commit
278d7fce
authored
Mar 06, 2021
by
Timo Koch
Browse files
[propertysytem] Remove outdated macro-related check
parent
5f2edbd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/common/properties/propertysystem.hh
View file @
278d7fce
...
...
@@ -50,16 +50,15 @@ template<class P>
constexpr
std
::
true_type
isDefinedProperty
(...)
{
return
{};
}
//! check if a TypeTag inherits from other TypeTags
//! the enable_if portion of decltype is only needed for the macro hack to work, if no macros are in use anymore it can be removed,
//! i.e. then trailing return type is then -> decltype(std::declval<typename T::InheritsFrom>(), std::true_type{})
template
<
class
T
>
constexpr
auto
hasParentTypeTag
(
int
)
->
decltype
(
std
::
declval
<
typename
T
::
InheritsFrom
>
(),
std
::
enable_if_t
<!
std
::
is_same
<
typename
T
::
InheritsFrom
,
void
>::
value
,
int
>
{},
std
::
true_type
{})
->
decltype
(
std
::
declval
<
typename
T
::
InheritsFrom
>
(),
std
::
true_type
{})
{
return
{};
}
//! fall back if a TypeTag doesn't inherit
template
<
class
T
>
constexpr
std
::
false_type
hasParentTypeTag
(...)
{
return
{};
}
constexpr
std
::
false_type
hasParentTypeTag
(...)
{
return
{};
}
//! helper alias to concatenate multiple tuples
template
<
class
...
Tuples
>
...
...
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