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

remove check for auto template parameters

parent bf6a91cb
...@@ -98,29 +98,15 @@ namespace AMDiS ...@@ -98,29 +98,15 @@ namespace AMDiS
} }
/// Check whether template parameter is a template-template
template <template <class...> class> template <template <class...> class>
constexpr bool is_template() { return true; } constexpr bool is_template() { return true; }
#if AMDIS_HAS_CXX_AUTO_TEMPLATE_PARAMETER
template <template <auto...> class> template <template <auto...> class>
constexpr bool is_template() { return true; } constexpr bool is_template() { return true; }
template <template <class,auto,auto...> class> template <template <class,auto,auto...> class>
constexpr bool is_template() { return true; } 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> template <class>
constexpr bool is_template() { return false; } constexpr bool is_template() { return false; }
......
...@@ -28,16 +28,4 @@ check_cxx_source_compiles(" ...@@ -28,16 +28,4 @@ check_cxx_source_compiles("
" AMDIS_HAS_EXPANSION_STATEMENTS " 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) unset(CMAKE_REQUIRED_FLAGS)
\ No newline at end of file
...@@ -55,7 +55,6 @@ ...@@ -55,7 +55,6 @@
/* some detected compiler features may be used in AMDiS */ /* some detected compiler features may be used in AMDiS */
#cmakedefine AMDIS_HAS_CXX_FOLD_EXPRESSIONS 1 #cmakedefine AMDIS_HAS_CXX_FOLD_EXPRESSIONS 1
#cmakedefine AMDIS_HAS_EXPANSION_STATEMENTS 1 #cmakedefine AMDIS_HAS_EXPANSION_STATEMENTS 1
#cmakedefine AMDIS_HAS_CXX_AUTO_TEMPLATE_PARAMETER 1
/* end amdis /* end amdis
Everything below here will be overwritten 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