标签: openmp c++14 variable-templates
我希望变量模板也是threadprivate。这可以吗?如下所示:
threadprivate
template<typename T> struct Tpl { }; template<typename X> extern Tpl<X> var; #pragma omp threadprivate(var) // <<< No compiler supports this. template<typename X> Tpl<X> var;