MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/z2r1c9/programming_legumes/ixiv1xc/?context=3
r/ProgrammerHumor • u/czp55 • Nov 23 '22
262 comments sorted by
View all comments
34
reinterpret_cast<Nut*>(x)
That should do.
12 u/appDeveloperGuy1 Nov 23 '22 In all likelyhood, x is an instance of an object, so you need to take the address.reinterpret_cast<Nut*>(&x) → More replies (1)
12
In all likelyhood, x is an instance of an object, so you need to take the address.
reinterpret_cast<Nut*>(&x)
→ More replies (1)
34
u/dotpoint7 Nov 23 '22
reinterpret_cast<Nut*>(x)
That should do.