This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Description
#include <thrust/detail/tuple_algorithms.h>
#include <tuple>
int main() {
std::tuple<int, float> t;
thrust::tuple_for_each(t, [](auto& e){e = 0;});
}
will fail to compile, because THRUST_UNUSED is undefined. I think this macro should prevent compiler warnings about unused variables, but also prevent some unwanted compiler optimizations. You can also search for THRUST_UNUSED in this repository and I only found it once in tuple_for_each_impl. Maybe you meant THRUST_UNUSED_VAR defined in thrust/system/cuda/config.h?