Constrain variadic constructor to ranks > 1 and add missing __device__s

このコミットが含まれているのは:
Alex Voicu
2018-07-17 17:17:48 +01:00
コミット 96aa6e22ee
2個のファイルの変更、4行の追加、1行の削除
+2
ファイルの表示
@@ -40,6 +40,7 @@ using namespace std;
template<
typename V,
Enable_if_t<!is_integral<decltype(declval<V>().x)>{}>* = nullptr>
__device__
constexpr
bool integer_unary_tests(const V&, const V&) {
return true;
@@ -73,6 +74,7 @@ bool integer_unary_tests(V& f1, V& f2) {
template<
typename V,
Enable_if_t<!is_integral<decltype(declval<V>().x)>{}>* = nullptr>
__device__
constexpr
bool integer_binary_tests(const V&, const V&, const V&) {
return true;