Skip to main content
22 events
when toggle format what by license comment
May 23, 2017 at 12:40 history edited CommunityBot
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Oct 12, 2015 at 17:10 comment added Deduplicator @cr_oag: Though that introduces lifetime-issues. If you say that's ok, sure.
Oct 12, 2015 at 16:24 comment added cr_oag You need to change the capture mode in make_deferred_invoker() from = to & to fix the performance issue.
Oct 12, 2015 at 14:20 history edited Deduplicator CC BY-SA 3.0
added 6 characters in body
Oct 12, 2015 at 14:15 comment added Deduplicator @croag: I was too clever for my own good when putting the ultimate base into the template. Moved it out.
Oct 12, 2015 at 14:13 history edited Deduplicator CC BY-SA 3.0
deleted 67 characters in body
Oct 12, 2015 at 4:27 comment added cr_oag Here's a demo: coliru.stacked-crooked.com/a/acde6b81f38d67e9
Oct 12, 2015 at 4:06 comment added cr_oag Yeah, perfect forwarding is important for that reason. Also, there seems to be an issue when calling your submit() with functions that have void return types. Try with this signature void f( int );.
Oct 12, 2015 at 3:45 comment added Deduplicator Well, all function-arguments are copied or moved into the lambda. Do you want some not to be copied?
Oct 12, 2015 at 3:38 comment added cr_oag I've done some simple timing tests and yours is faster when copying POD's. However, there must be some sort of issue with the deductions going on, because even if the function has a const&, it is copied, making it a lot slower.
Oct 12, 2015 at 2:06 comment added Deduplicator Well, now there are two levels of type-erasure: Max, only useful for calling invoke and delete. Intermediate, all but moving works. No type-erasure.
Oct 12, 2015 at 2:03 history edited Deduplicator CC BY-SA 3.0
added 98 characters in body
Oct 12, 2015 at 1:49 history edited Deduplicator CC BY-SA 3.0
deleted 26 characters in body
Oct 12, 2015 at 1:46 history edited Deduplicator CC BY-SA 3.0
deleted 84 characters in body; deleted 6 characters in body
Oct 12, 2015 at 1:30 history edited Deduplicator CC BY-SA 3.0
deleted 2 characters in body
Oct 12, 2015 at 1:09 history undeleted Deduplicator
Oct 12, 2015 at 1:08 history edited Deduplicator CC BY-SA 3.0
added 352 characters in body
Oct 11, 2015 at 22:05 history deleted Deduplicator via Vote
Oct 11, 2015 at 21:56 history edited Deduplicator CC BY-SA 3.0
added 174 characters in body
Oct 11, 2015 at 21:47 comment added cr_oag You are definitely correct about the rule of 3/5. I overlooked that.
Oct 11, 2015 at 21:34 history edited Deduplicator CC BY-SA 3.0
added 97 characters in body; deleted 2 characters in body
Oct 11, 2015 at 21:23 history answered Deduplicator CC BY-SA 3.0