1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-09 23:45:36 +00:00

Compiler error fix: NVCC requires names for templ. par.

This commit is contained in:
Julian Lenz 2022-12-18 15:50:19 +00:00
parent 0af7d5a793
commit 92ad5b8f74

View File

@ -32,15 +32,17 @@ directory
#ifndef QCD_UTIL_SUN_H #ifndef QCD_UTIL_SUN_H
#define QCD_UTIL_SUN_H #define QCD_UTIL_SUN_H
// Important detail: nvcc requires all template parameters to have names.
// This is the only reason why the second template parameter has a name.
#define ONLY_IF_SU \ #define ONLY_IF_SU \
typename dummy_name = group_name, \ typename dummy_name = group_name, \
typename = std::enable_if_t < \ typename named_dummy = std::enable_if_t < \
std::is_same<dummy_name, group_name>::value && \ std::is_same<dummy_name, group_name>::value && \
is_su<dummy_name>::value > is_su<dummy_name>::value >
#define ONLY_IF_Sp \ #define ONLY_IF_Sp \
typename dummy_name = group_name, \ typename dummy_name = group_name, \
typename = std::enable_if_t < \ typename named_dummy = std::enable_if_t < \
std::is_same<dummy_name, group_name>::value && \ std::is_same<dummy_name, group_name>::value && \
is_sp<dummy_name>::value > is_sp<dummy_name>::value >