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
5f3448f5
Commit
5f3448f5
authored
May 01, 2019
by
Praetorius, Simon
Browse files
add cxx feature test for auto templates
parent
2c7ee1ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
cmake/modules/AmdisCXXFeatures.cmake
View file @
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
)
config.h.cmake
View file @
5f3448f5
...
...
@@ -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
...
...
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