You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Joris Van Remoortere (JIRA)" <ji...@apache.org> on 2015/05/21 03:17:59 UTC
[jira] [Commented] (MESOS-2757) Allow mutating T in Option
[ https://issues.apache.org/jira/browse/MESOS-2757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14553469#comment-14553469 ]
Joris Van Remoortere commented on MESOS-2757:
---------------------------------------------
https://reviews.apache.org/r/34518
> Allow mutating T in 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 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}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)