Commit 51fa4226 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Merge branch 'feature/auto_template_parameter' into 'master'

add cxx feature test for auto templates

See merge request !42
parents 4e19770b 5f3448f5
......@@ -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
......
Supports Markdown
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