diff --git a/libcudacxx/test/libcudacxx/heterogeneous/helpers.h b/libcudacxx/test/libcudacxx/heterogeneous/helpers.h index d1d3c5870f0..7c7cbcec296 100644 --- a/libcudacxx/test/libcudacxx/heterogeneous/helpers.h +++ b/libcudacxx/test/libcudacxx/heterogeneous/helpers.h @@ -16,19 +16,8 @@ #include #include -#include - #include "meta.h" -template -struct void_sink{}; - -template -struct has_threadcount : std::false_type { }; - -template -struct has_threadcount : std::true_type {}; - #define DEFINE_ASYNC_TRAIT(...) \ template \ struct async##__VA_ARGS__##_trait_impl \ @@ -49,6 +38,13 @@ DEFINE_ASYNC_TRAIT() DEFINE_ASYNC_TRAIT(_initialize) DEFINE_ASYNC_TRAIT(_validate) +#undef DEFINE_ASYNC_TRAIT + +template +struct has_threadcount : std::false_type { }; +template +struct has_threadcount : std::true_type {}; + template ::value> struct threadcount_trait_impl { @@ -64,8 +60,6 @@ struct threadcount_trait_impl template using threadcount_trait = threadcount_trait_impl; -#undef DEFINE_ASYNC_TRAIT - #define HETEROGENEOUS_SAFE_CALL(...) \ do \ { \