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

Merge branch 'feature/auto_template_parameter' into 'master'

remove check for auto template parameters

See merge request !180
parents c243b2b0 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; }
......
......@@ -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
......@@ -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
......
Markdown is supported
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