You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Daniel Pravat (JIRA)" <ji...@apache.org> on 2016/05/20 22:14:12 UTC
[jira] [Created] (MESOS-5428) Update the mechanism to define flags
in FlagsBase derived clases
Daniel Pravat created MESOS-5428:
------------------------------------
Summary: 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
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.
Since the constructor is not completed class is not completed (in Visual Studio the vtable is not correct at that time) the code does not work on Windows.
We should have to call a separate method in Windows.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)