You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Michael Park (JIRA)" <ji...@apache.org> on 2016/07/08 20:07:11 UTC

[jira] [Updated] (MESOS-5428) Update the mechanism to define flags in FlagsBase derived clases

     [ https://issues.apache.org/jira/browse/MESOS-5428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Park updated MESOS-5428:
--------------------------------
    Assignee: Daniel Pravat

> Update the mechanism to define flags in FlagsBase derived clases
> ----------------------------------------------------------------
>
>                 Key: MESOS-5428
>                 URL: https://issues.apache.org/jira/browse/MESOS-5428
>             Project: Mesos
>          Issue Type: Bug
>            Reporter: Daniel Pravat
>            Assignee: Daniel Pravat
>             Fix For: 1.0.0
>
>
> If a program exeposes flags,  the recommendation from Mesos was to use a derived class from FlagsBase, add the new flags in constructor.
> As benefit  the new `Flags` class `inherits` all the flags from the derived classes.
> Each derived calss calls the method `add` implemented in `FlagsBase` which uses `dynamic_cast` to set the default value and other things.
> To use `FlagsBase` derived classes in Visual Studio  we should disable construction displacements using `/vd2` compile option. 
> More info: https://msdn.microsoft.com/en-us/library/7sf3txa8.aspx



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)