Timeline for Where is the dynamic memory associated with std::bind?
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 14, 2019 at 6:47 | comment | added | v.oddou | maybe you can mention type erasure | |
| Oct 27, 2015 at 0:37 | comment | added | Winston Ewert | @Jules, yes, you are technically correct: the best kind of correct. I thought that discussing that would be too confusing. | |
| Oct 27, 2015 at 0:21 | comment | added | Jules | Your answer is technically incorrect, as it ignores return value optimization, meaning that the value returned by bind is likely to be placed immediately in its destination, which in the example given is on the heap not the stack. However, this makes no practical difference, so your answer is correct in spirit. | |
| Oct 26, 2015 at 16:36 | comment | added | Bruce | Now that makes sense. I'll revise my original post with an example. Please comment on it. | |
| Oct 26, 2015 at 16:19 | history | answered | Winston Ewert | CC BY-SA 3.0 |