Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tom_
7 months ago
|
parent
|
context
|
favorite
| on:
Simplest C++ Callback, from SumatraPDF
And another one dies every time you need to step through a call to std::function. Whatever you do, the kittens are never going to escape.
waynecochran
7 months ago
[–]
To save the kitten, one could at least write classes that override the call operator::(). No need for void* or any ptrs at all and std::function is avoided as well. That will at least get you to 2010 C++ code.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: