[
https://issues.apache.org/jira/browse/MESOS-2757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joris Van Remoortere updated MESOS-2757:
----------------------------------------
Description:
Let's add operator overloads to Option<T> to allow access to the underlying T
using the `->` operator.
was:
Let's add some operator overloads to Option<T> to allow modification of the T
in Option<T>. This way we can avoid code like:
{code:title=decoder.hpp|borderStyle=solid}
http::Pipe::Writer writer_ = writer.get(); // Remove const.
{code}
> Can't Use -> operator with Option<T>
> ------------------------------------
>
> Key: MESOS-2757
> URL: https://issues.apache.org/jira/browse/MESOS-2757
> Project: Mesos
> Issue Type: Improvement
> Components: stout
> Reporter: Joris Van Remoortere
> Assignee: Joris Van Remoortere
> Labels: c++11, option, stout
>
> Let's add operator overloads to Option<T> to allow access to the underlying T
> using the `->` operator.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)