Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
a0da3a03
Commit
a0da3a03
authored
Apr 14, 2020
by
Praetorius, Simon
Browse files
remove check for auto template parameters
parent
bf6a91cb
Changes
3
Hide whitespace changes
Inline
Side-by-side
amdis/common/TypeTraits.hpp
View file @
a0da3a03
...
...
@@ -98,29 +98,15 @@ namespace AMDiS
}
/// Check whether template parameter is a template-template
template
<
template
<
class
...
>
class
>
constexpr
bool
is_template
()
{
return
true
;
}
#if AMDIS_HAS_CXX_AUTO_TEMPLATE_PARAMETER
template
<
template
<
auto
...>
class
>
constexpr
bool
is_template
()
{
return
true
;
}
template
<
template
<
class
,
auto
,
auto
...>
class
>
constexpr
bool
is_template
()
{
return
true
;
}
#else
template
<
template
<
int
...>
class
>
constexpr
bool
is_template
()
{
return
true
;
}
template
<
template
<
class
,
int
,
int
...>
class
>
constexpr
bool
is_template
()
{
return
true
;
}
template
<
template
<
std
::
size_t
...>
class
>
constexpr
bool
is_template
()
{
return
true
;
}
template
<
template
<
class
,
std
::
size_t
,
std
::
size_t
...>
class
>
constexpr
bool
is_template
()
{
return
true
;
}
#endif
template
<
class
>
constexpr
bool
is_template
()
{
return
false
;
}
...
...
cmake/modules/AmdisCXXFeatures.cmake
View file @
a0da3a03
...
...
@@ -28,16 +28,4 @@ check_cxx_source_compiles("
"
AMDIS_HAS_EXPANSION_STATEMENTS
)
check_cxx_source_compiles
(
"
template <auto n>
struct Foo {};
int main()
{
Foo<0> foo_int;
Foo<true> foo_bool;
Foo<1u> foo_unsigned;
}
"
AMDIS_HAS_CXX_AUTO_TEMPLATE_PARAMETER
)
unset
(
CMAKE_REQUIRED_FLAGS
)
\ No newline at end of file
config.h.cmake
View file @
a0da3a03
...
...
@@ -55,7 +55,6 @@
/* some detected compiler features may be used in AMDiS */
#cmakedefine AMDIS_HAS_CXX_FOLD_EXPRESSIONS 1
#cmakedefine AMDIS_HAS_EXPANSION_STATEMENTS 1
#cmakedefine AMDIS_HAS_CXX_AUTO_TEMPLATE_PARAMETER 1
/* end amdis
Everything below here will be overwritten
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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