MGfoundation / mgcpp

A C++ Math Library Based on CUDA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clang on libstdc++ produces mismatched tags warning

mujjingun opened this issue · comments

/home/park/devel/mgcpp/include/mgcpp/global/shape.hpp:35: warning: 'tuple_size' defined as a struct template here but previously declared as a class template [-Wmismatched-tags]
    struct tuple_size<mgcpp::shape<Dims>>
    ^
/usr/include/c++/6.3.0/array:316: did you mean struct here?
    class tuple_size;
    ^

If i declare tuple_size as class, the same warning but from <utility>:

/home/park/devel/mgcpp/include/mgcpp/global/shape.hpp:35: warning: 'tuple_size' defined as a class template here but previously declared as a struct template [-Wmismatched-tags]
    class tuple_size<mgcpp::shape<Dims>>
    ^
/usr/include/c++/6.3.0/utility:84: did you mean class here?
    struct tuple_size;
    ^

So either way there isn't a way to resolve the warning.

Looked it up on the internet, apparently mismatched-tag warning is not really critical. We could just turn that one off

Turned the warning off for clang.