You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Till Toenshoff (JIRA)" <ji...@apache.org> on 2016/01/04 12:07:40 UTC
[jira] [Updated] (MESOS-4273) Replace variadic List constructor
with one taking a initializer_list
[ https://issues.apache.org/jira/browse/MESOS-4273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Till Toenshoff updated MESOS-4273:
----------------------------------
Shepherd: Till Toenshoff
> Replace variadic List constructor with one taking a initializer_list
> --------------------------------------------------------------------
>
> Key: MESOS-4273
> URL: https://issues.apache.org/jira/browse/MESOS-4273
> Project: Mesos
> Issue Type: Improvement
> Components: stout
> Reporter: Benjamin Bannier
> Assignee: Benjamin Bannier
> Priority: Minor
>
> {{List}} provides a variadic constructor currently implemented with some preprocessor magic. Given that we already require C++11 we can replace that one with a much simpler one just taking a {{std::initializer_list}}. This would change the invocations,
> {code}
> auto l1 = List<int>(1, 2, 3); // now
> auto l2 = List<int>({1, 2, 3}); // proposed
> {code}
> This addresses an existing {{TODO}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)