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

this 指针的类型 在不同平台有略微的区别 #65

Closed
SixGodZhang opened this issue Aug 12, 2020 · 1 comment
Closed

this 指针的类型 在不同平台有略微的区别 #65

SixGodZhang opened this issue Aug 12, 2020 · 1 comment

Comments

@SixGodZhang
Copy link

环境:
Win7 专业版
Visual Studio 2017 社区版

问题:
作者在【this那些事儿】中提到this在普通方法中是TypeName * const 类型, 我在VS中进行了验证, 局部变量this的类型为TypeName *类型。
结论:
初步推测是不同平台,或许是不同IDE导致的这个结果差异.

@SixGodZhang
Copy link
Author

只是VS显示的区别。

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