Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning predefinition std::tuple_size #213

Open
tdegeus opened this issue Sep 10, 2020 · 0 comments
Open

Warning predefinition std::tuple_size #213

tdegeus opened this issue Sep 10, 2020 · 0 comments

Comments

@tdegeus
Copy link
Member

tdegeus commented Sep 10, 2020

It appears that std::tuple_size is predefined here:

class tuple_size<tcb::span<E, S>> : public integral_constant<size_t, static_cast<size_t>(S)> {};

However, some compilers (e.g. linux/clang6.0) seem to define it as struct not a class:

In file included from /home/travis/miniconda/include/xtl/xspan.hpp:13:
864/home/travis/miniconda/include/xtl/xspan_impl.hpp:763:1: warning: 'tuple_size'
865      defined as a class template here but previously declared as a struct
866      template [-Wmismatched-tags]
867class tuple_size<tcb::span<E, S>> : public integral_constant<size_t, sta...
868^
869/usr/bin/../lib/gcc/x86_64-linux-gnu/5.5.0/../../../../include/c++/5.5.0/tuple:801:5: note: 
870      did you mean class here?
871    struct tuple_size;
872    ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant