Skip to content
Snippets Groups Projects
Commit 5f3448f5 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

add cxx feature test for auto templates

parent 2c7ee1ed
Branches
Tags
1 merge request!42add cxx feature test for auto templates
......@@ -40,4 +40,16 @@ check_cxx_source_compiles("
std::cout << elem << std::endl;
}
" AMDIS_HAS_EXPANSION_STATEMENTS
)
\ No newline at end of file
)
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
)
......@@ -50,6 +50,7 @@
#cmakedefine AMDIS_HAS_CXX_FOLD_EXPRESSIONS 1
#cmakedefine AMDIS_HAS_CXX_CONSTEXPR_IF 1
#cmakedefine AMDIS_HAS_EXPANSION_STATEMENTS 1
#cmakedefine AMDIS_HAS_CXX_AUTO_TEMPLATE_PARAMETER 1
/* end amdis
Everything below here will be overwritten
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment