mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yan Xu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MESOS-7195) Use C++11 variadic templates for process::dispatch/defer/delay/async/run
Date Wed, 01 Mar 2017 22:02:45 GMT
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)

Mime
View raw message