Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
amdis
amdis-core
Commits
5f3448f5
Commit
5f3448f5
authored
5 years ago
by
Praetorius, Simon
Browse files
Options
Downloads
Patches
Plain Diff
add cxx feature test for auto templates
parent
2c7ee1ed
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!42
add cxx feature test for auto templates
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake/modules/AmdisCXXFeatures.cmake
+13
-1
13 additions, 1 deletion
cmake/modules/AmdisCXXFeatures.cmake
config.h.cmake
+1
-0
1 addition, 0 deletions
config.h.cmake
with
14 additions
and
1 deletion
cmake/modules/AmdisCXXFeatures.cmake
+
13
−
1
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
)
This diff is collapsed.
Click to expand it.
config.h.cmake
+
1
−
0
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment