Timeline for answer to Function returning a lambda expression by user534498
Current License: CC BY-SA 3.0
Post Revisions
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 29, 2016 at 10:12 | history | edited | jotik | CC BY-SA 3.0 |
Improved formatting
|
| Nov 6, 2011 at 9:30 | comment | added | Flexo - Save the data dump♦ | @J.F.Sebastian - I can't seem to find an answer to that so I've asked it as a question in its own right: stackoverflow.com/questions/8026170/… | |
| Nov 6, 2011 at 1:38 | comment | added | jfs | @awoodland: Good question. The code does what the words in the answer say. Whether it is correct I don't know. The full program I've linked above works with gcc. | |
| Nov 6, 2011 at 0:12 | comment | added | Flexo - Save the data dump♦ | @J.F.Sebastian - What's the lifetime of the lambda in this example? Is it long enough to outlive the result of the conversion to function pointer? | |
| Nov 5, 2011 at 23:47 | comment | added | jfs | I've added code example. Here's a full program. | |
| Nov 5, 2011 at 23:36 | history | edited | jfs | CC BY-SA 3.0 |
add code example
|
| Nov 5, 2011 at 17:32 | comment | added | Ben Voigt | Yes, the final wording of this rule came too late for VC2010. | |
| Jan 23, 2011 at 20:44 | comment | added | Bartosz Milewski | This sounds right. Unfortunately, it doesn't work with the current compiler I'm using: VS 2010. std::function conversion happens to work. | |
| Jan 19, 2011 at 0:44 | history | answered | user534498 | CC BY-SA 2.5 |