[
https://issues.apache.org/jira/browse/MESOS-1861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14158535#comment-14158535
]
Dominic Hamon commented on MESOS-1861:
--------------------------------------
I don't understand the benefit of only allowing const access. If you want to
store a std::shared_ptr to an object that can't be mutated, you should be able
to use a {{std::shared_ptr<const T>}}.
{{Owned}} will eventually be deprecated in favour of {{std::unique_ptr}} which
already supports conversion to {{std::shared_ptr}}:
http://www.cplusplus.com/reference/memory/shared_ptr/shared_ptr/
> deprecate process::Shared
> -------------------------
>
> Key: MESOS-1861
> URL: https://issues.apache.org/jira/browse/MESOS-1861
> Project: Mesos
> Issue Type: Improvement
> Components: libprocess
> Reporter: Dominic Hamon
> Priority: Minor
> Labels: c++11, newbie
>
> Deprecate {{process::Shared}} in favour of {{std::shared_ptr}} or
> {{std::tr1::shared_ptr}} from stout/memory.hpp.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)