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

在MSVC下部分代码提示报错。 #3

Open
duxingzhe opened this issue Jun 13, 2017 · 2 comments
Open

在MSVC下部分代码提示报错。 #3

duxingzhe opened this issue Jun 13, 2017 · 2 comments

Comments

@duxingzhe
Copy link

pointer
原来的代码是:
heap.cpp
heap->tree = temp
改成
heap->tree = &temp;;//error:temp
这样才不会报错。

@yourtion
Copy link
Owner

这样修改的话在Mac上是不行的,不知道是不是因为cpp的问题,因为tree->temp 本来就是一个指向实际内容的指针的指针,所以用heap->tree = temp应该是对的

在MSVC上的报错是什么呢?

@duxingzhe
Copy link
Author

duxingzhe commented Jun 15, 2017

报错为:a value of type "void *" cannot be assigned to an entity of type "void **".
可能是编译器的理解方式不同,暂时没有深入研究。

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