[
https://issues.apache.org/jira/browse/MESOS-750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13916334#comment-13916334
]
Jie Yu commented on MESOS-750:
------------------------------
Here are what I want:
Rvalue references --> reduce copy cost
Initialization of class objects by rvalues --> ditto above
Variadic templates --> eliminate nasty boost preprocessor foreach
Initializer lists --> good for sth. like stout/set.hpp
Static assertions --> more assertions!
auto-typed variables --> no need to specify the iterator type, less verbose
Lambda expressions --> inline continuations
Declared type of an expression --> needed by some interval libprocess functions
Right angle brackets --> Future<Option<T>> instead of Future<Option<T> >
Alias templates --> good for wrap boost libraries
Delegating constructors --> reduce copy-pastes
Defaulted functions --> make things explicit
Deleted functions --> ditto above
Unrestricted unions --> remove extra memory allocation in Option (Try, Result)
Atomic operations --> remove gcc specific dependencies like
__sync_fetch_and_add, etc.
Thread-local storage --> something inside libprocess can be cleaned up
> Require compilers that support c++11
> ------------------------------------
>
> Key: MESOS-750
> URL: https://issues.apache.org/jira/browse/MESOS-750
> Project: Mesos
> Issue Type: Improvement
> Reporter: Benjamin Mahler
> Labels: technical_debt
> Fix For: 0.19.0
>
>
> Requiring C++11 support will provide substantial benefits to Mesos.
> Most notably, the lack of lambda support has resulted in a proliferation of
> continuation style functions scattered throughout the code. Having lambdas
> will allow us to reduce this clutter and simplify the code.
> This will require carefully documenting how to get Mesos compiling on various
> systems to make this transition easy.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)