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

TypeHiearchy.pdf is missing an edge from union to class #7

Open
zygoloid opened this issue Nov 8, 2019 · 1 comment
Open

TypeHiearchy.pdf is missing an edge from union to class #7

zygoloid opened this issue Nov 8, 2019 · 1 comment

Comments

@zygoloid
Copy link

zygoloid commented Nov 8, 2019

A union is a kind of class, so there should be a line from union to class in TypeHierarchy.pdf.

(Otherwise this is an excellent and incredibly useful resource! Would you have any interest in contributing it to the standard?)

@HowardHinnant
Copy link
Owner

I'd be happy to contribute it to the standard. But you may not want it after my response. :-)

I should make this chart more clear that it models the primary and composite type_traits ([meta.unary.cat] and [meta.unary.comp] respectively). Here there is no such relationship between union and class.

This was an intentional deviation from [basic.types] for C++11 justified by the practical needs of the clients of <type_traits>.

That being said, if anyone wants to create a derivative work from this that depicts [basic.types], I don't mind at all.

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

2 participants