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

Fix MSVC build error with container.h #4455

Merged
merged 2 commits into from Dec 3, 2019

Conversation

jmorrill
Copy link
Contributor

@jmorrill jmorrill commented Dec 3, 2019

The PR 4346 introduced a breaking change in MSVC builds.

In container.h, 'non-class template has already been declared as a class template' on line 201.

This change fixes the builds on MSVC (2019 toolset v14.2), but have not tried on any other compiler.

@@ -198,6 +198,7 @@ class ADTObj : public Object, public InplaceArrayBase<ADTObj, ObjectRef> {
}

friend class ADT;
template <typename ArrayType, typename ElemType>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider change to InplaceArrayBase<ADTObj, ObjectRef>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Changed it. This compiles clean here (VS 2019 toolset v14.2)

Copy link
Contributor

@wweic wweic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. thanks for the fix!

Copy link
Member

@junrushao junrushao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wweic wweic mentioned this pull request Dec 3, 2019
@tqchen tqchen merged commit 239d437 into apache:master Dec 3, 2019
tmoreau89 pushed a commit to tmoreau89/tvm that referenced this pull request Dec 3, 2019
zxy844288792 pushed a commit to zxy844288792/tvm that referenced this pull request Dec 13, 2019
zxy844288792 pushed a commit to neo-ai/tvm that referenced this pull request Dec 13, 2019
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

4 participants