Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ArborX
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
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
Arndt, Daniel
ArborX
Commits
0e4bc6a0
Commit
0e4bc6a0
authored
5 years ago
by
Lebrun-Grandie, Damien
Browse files
Options
Downloads
Patches
Plain Diff
Add test for has_access_traits
parent
854666d2
No related branches found
No related tags found
1 merge request
!113
Improve error messages in BVH constructor and BVH::query()
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/tstDetailsConcepts.cpp
+36
-0
36 additions, 0 deletions
test/tstDetailsConcepts.cpp
with
36 additions
and
0 deletions
test/tstDetailsConcepts.cpp
+
36
−
0
View file @
0e4bc6a0
#include
<ArborX_DetailsConcepts.hpp>
#include
<Kokkos_Core.hpp>
#include
<tuple>
using
ArborX
::
Box
;
...
...
@@ -46,4 +48,38 @@ static_assert(std::is_same<first_template_parameter_t<std::tuple<int, float>>,
int
>::
value
,
""
);
using
ArborX
::
Details
::
has_access_traits
;
using
ArborX
::
Traits
::
PredicatesTag
;
using
ArborX
::
Traits
::
PrimitivesTag
;
struct
HasNoAccessTraitsSpecialization
{
};
struct
HasEmptySpecialization
{
};
namespace
ArborX
{
namespace
Traits
{
template
<
typename
Tag
>
struct
Access
<
HasEmptySpecialization
,
Tag
>
{
};
}
// namespace Traits
}
// namespace ArborX
static_assert
(
has_access_traits
<
Kokkos
::
View
<
double
*>
,
PrimitivesTag
>::
value
,
""
);
static_assert
(
has_access_traits
<
Kokkos
::
View
<
double
*>
,
PredicatesTag
>::
value
,
""
);
static_assert
(
!
has_access_traits
<
HasNoAccessTraitsSpecialization
,
PrimitivesTag
>::
value
,
""
);
static_assert
(
!
has_access_traits
<
HasNoAccessTraitsSpecialization
,
PredicatesTag
>::
value
,
""
);
static_assert
(
has_access_traits
<
HasEmptySpecialization
,
PrimitivesTag
>::
value
,
""
);
static_assert
(
has_access_traits
<
HasEmptySpecialization
,
PredicatesTag
>::
value
,
""
);
int
main
()
{}
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