-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
address_of不能获取对象的真实地址 #133
Comments
已经收到您的邮件!!!
|
确实是这样,所以标准库是比较复杂的,但我这项目不探究完整的实现,旨在建立一个基本的认识,谢谢你提出的问题 |
已经收到您的邮件!!!
|
感谢作者回复 |
这个问题不该关,我要修复。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
// 获取对象地址
上述代码用于获取对象的真实地址,但是在重载operator&时,上述代码是不work的,下面是我的一个验证:
https://godbolt.org/z/cPd1WMx7h
可能需要使用
std::addressof
进行修复The text was updated successfully, but these errors were encountered: