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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template parameter named ItemType collides with enum called ItemType #358

Merged
merged 1 commit into from
Dec 10, 2020

Conversation

gabm
Copy link
Contributor

@gabm gabm commented Dec 10, 2020

MSVC fails to compile SortedTableItem<QTreeWidgetItem>.

If we use that definition, the class QTreeWidgetItem becomes a baseclass of SortedTableItem. That also inherits an enum called "ItemType" (which is the same as the template name). MSVC stumbles and spits out compilation errors 馃う . A simple solution is to rename the template parameter 馃う 馃う

@facontidavide facontidavide merged commit 92604a5 into facontidavide:main Dec 10, 2020
@facontidavide
Copy link
Owner

awesome

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

Successfully merging this pull request may close these issues.

None yet

2 participants