You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Yan Xu (JIRA)" <ji...@apache.org> on 2017/03/01 22:02:45 UTC
[jira] [Created] (MESOS-7195) Use C++11 variadic templates for
process::dispatch/defer/delay/async/run
Yan Xu created MESOS-7195:
-----------------------------
Summary: Use C++11 variadic templates for process::dispatch/defer/delay/async/run
Key: MESOS-7195
URL: https://issues.apache.org/jira/browse/MESOS-7195
Project: Mesos
Issue Type: Improvement
Components: libprocess
Reporter: Yan Xu
These methods are currently implemented using {{REPEAT_FROM_TO}} (i.e., {{BOOST_PP_REPEAT_FROM_TO}}):
{code:title=}
REPEAT_FROM_TO(1, 11, TEMPLATE, _) // Args A0 -> A9.
{code}
This means we have to bump up the number of repetition whenever we have a new method with more args.
Seems like we can replace this with C++11 variadic templates.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)