-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template BruteForce on BoundingVolume #712
Template BruteForce on BoundingVolume #712
Conversation
1b3f7f4
to
07b7ce3
Compare
"#define ARBORX_TEST_TREE_TYPES Tuple<ArborX::BruteForce>\n" | ||
"#include <ArborX_Box.hpp>\n" | ||
"template <class MemorySpace> using ArborX__BruteForce = ArborX::BruteForce<MemorySpace, ArborX::Box>;\n" | ||
"#define ARBORX_TEST_TREE_TYPES Tuple<ArborX__BruteForce>\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed either
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It won't work without:
In file included from arborx/build/test/tstQueryTreeCallbacks_BF.cpp:6:
In file included from arborx/test/tstQueryTreeCallbacks.cpp:19:
arborx/test/ArborXTest_TreeTypeTraits.hpp:81:31: error: template template argument has different template parameters than its corresponding template template parameter
typename CartesianProduct<ARBORX_TEST_TREE_TYPES,
^
arborx/build/test/tstQueryTreeCallbacks_BF.cpp:2:46: note: expanded from macro 'ARBORX_TEST_TREE_TYPES'
#define ARBORX_TEST_TREE_TYPES Tuple<ArborX::BruteForce>
^
arborx/src/ArborX_BruteForce.hpp:26:1: note: too many template parameters in template template argument
template <typename MemorySpace, typename BoundingVolume = Box>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arborx/test/ArborXTest_TreeTypeTraits.hpp:20:11: note: previous template template parameter is here
template <template <class> class...>
^~~~~~~~~~~~~~~~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh right
This is in preparation to using brute force for multi-dimensional data.
Realistically, it's not really
BoundingVolume
, but rather someValue
. But that can be changed with APIv2.