<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class="">On Mar 29, 2018, at 3:43 PM, James Gregurich <<a href="mailto:bayoubengalml@mac.com" class="">bayoubengalml@mac.com</a>> wrote:</div><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><blockquote type="cite" class=""><div class="">On Mar 29, 2018, at 2:30 PM, John McCall <<a href="mailto:rjmccall@apple.com" class="">rjmccall@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><blockquote type="cite" class=""><div class="">On Mar 29, 2018, at 3:19 PM, James Gregurich <<a href="mailto:bayoubengalml@mac.com" class="">bayoubengalml@mac.com</a>> wrote:</div><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><blockquote type="cite" class=""><div class="">On Mar 29, 2018, at 2:01 PM, John McCall via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">If you could write @selector(-NSWidget.foo:bar:), and that you gave you a SEL<void(NSWidget*, float, std::unique_ptr<Gadget> &&)>,</span></div></blockquote></div><br class=""><div class="">How would you write the template arguments that would accept this parameterized SEL type?</div></div></div></blockquote></div><br class=""><div class="">template <class... ParamTys></div><div class="">void dispatch_sel_after(dispatch_time_t when, dispatch_queue_t queue, SEL<void(ParamTys...)> sel, std::enable_if<true, ParamTys>::type &&... params) {</div><div class=""> ...</div><div class="">}</div><div class=""><br class=""></div><div class="">Thinking about it, it would probably be easier to use dispatch_after_f than the blocks API in the implementation.</div></div></div></blockquote></div><br class=""><div class=""><br class=""></div><div class="">would you also modify the stl to supply specializations of packaged_task<> and function<> that could accept the parameterized selector type?</div></div></div></blockquote></div><br class=""><div class="">That would not be necessary; those types already work with any callable type.</div><div class=""><br class=""></div><div class="">John.</div></body></html>