[
https://issues.apache.org/jira/browse/MESOS-750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14112422#comment-14112422
]
Dominic Hamon commented on MESOS-750:
-------------------------------------
First we need to decide a minimum compiler to support. My vote is for g++
4.8.2/clang 3.4. The below discussion will use these as an example.
We can't flip the switch until the availability of g++ 4.8.2 and clang 3.4
(maybe 3.3) are more widespread. Given ubuntu LTS is now 14.04 which comes with
g++ 4.8.2[1] and clang 3.4[2], this may now be possible.
However, CentOS 6 ships with g++ 4.4.7 [3] which means we would require
developers on that platform to use devtoolset-2. Not a deal breaker, but a
policy decision that probably needs some thought.
Once we have decided to, we need some bulletproof compiler tests in the
configure script. We can either check the version number, or (ideally) have a
suite of configure tests that exercise the C++11 features we care about. This
will need curation but will give us an accurate result. Note that it is
important to run the code as well as compile it.
1. http://packages.ubuntu.com/trusty/g++
2. http://packages.ubuntu.com/trusty/clang
3. http://mirrors.sonic.net/centos/6/os/x86_64/Packages/
> Require compilers that support c++11
> ------------------------------------
>
> Key: MESOS-750
> URL: https://issues.apache.org/jira/browse/MESOS-750
> Project: Mesos
> Issue Type: Improvement
> Components: technical debt
> Reporter: Benjamin Mahler
>
> 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.2#6252)