Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
wheybags
9 months ago
|
parent
|
context
|
favorite
| on:
C++ left arrow operator (2016)
I'm a big fan of:
this->~MyClass(); new (this) MyClass();
I have unironically used this
amluto
9 months ago
|
next
[–]
I hope you are confident that this doesn’t point to an instance of a derived class.
wheybags
9 months ago
|
parent
|
next
[–]
Of course :p
rramadass
9 months ago
|
prev
[–]
Yeah, I too have used this to wrap message buffers passed to and from kernel and user space; quite handy if you design and use the class with discipline.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: