-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
changing pointers #1688
Comments
Supplying an a code sample of the failure would be helpful.
…On Sat, Oct 27, 2018 at 8:40 PM emekoi ***@***.***> wrote:
in my code i pass a pointer to a struct to one of it's method but the
pointer's address differs from the address of the actual struct by 20. the
address of the actual struct also differs from the address of the struct i
return in the initializer by 4 as well. can anyone tell me why my pointers
are all different?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1688>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA-hHMm2xjsVad8yHumi82t61gR89fgKks5upScXgaJpZM4X9w8a>
.
|
here's an example that's just produces different random pointer values:
|
copy elision isn't in yet (see #287, #1682), so the
|
thanks! this was really messing me up. |
in my code i pass a pointer to a struct to one of it's method but the pointer's address differs from the address of the actual struct by 20. the address of the actual struct also differs from the address of the struct i return in the initializer by 4 as well. the code in question is here. running the code on windows will produce 3 different values for the address of the window. an anyone tell me why the pointers are all different?
The text was updated successfully, but these errors were encountered: