You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Neil Conway (JIRA)" <ji...@apache.org> on 2016/10/28 14:31:58 UTC
[jira] [Assigned] (MESOS-6496) Support up-casting of Shared and
Owned
[ https://issues.apache.org/jira/browse/MESOS-6496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Neil Conway reassigned MESOS-6496:
----------------------------------
Assignee: Neil Conway
> Support up-casting of Shared<T> and Owned<T>
> --------------------------------------------
>
> Key: MESOS-6496
> URL: https://issues.apache.org/jira/browse/MESOS-6496
> Project: Mesos
> Issue Type: Bug
> Components: libprocess
> Reporter: Neil Conway
> Assignee: Neil Conway
> Labels: mesosphere, tech-debt
>
> It should be possible to pass a {{Shared<Derived>}} value to an object that takes a parameter of type {{Shared<Base>}}. Similarly for {{Owned}}. In general, {{Shared<T2>}} should be implicitly convertable to {{Shared<T1>}} iff {{T2}} is implicitly convertable to {{T1}}. In C++11, this works because they define the appropriate conversion constructor.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)