Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Use C++14 features / require gcc 4.9 #1403

Closed

Description

@jfirebaugh

We've encountered several situations where we want to use C++14's generalized lambda capture.

This is supported in gcc 4.9 and clang 3.4 (which we already require).

@springmeyer Do you forsee any issues requiring gcc 4.9 rather than 4.8?

Activity

  1. jfirebaugh commented on May 2, 2015

    @jfirebaugh
    ContributorAuthor

    Notes from a previous effort to switch to gcc 4.9: #1250 (comment)

  2. jfirebaugh commented on May 2, 2015

    @jfirebaugh
    ContributorAuthor

    Looking good here.

    Blocker seems to be getting a more recent compiler for the android builds:

    https://travis-ci.org/mapbox/mapbox-gl-native/builds/60976494

  3. springmeyer commented on May 4, 2015

    @springmeyer
    Contributor

    @springmeyer Do you forsee any issues requiring gcc 4.9 rather than 4.8?

    No. Although it would be interesting to test on ubuntu trusty with the stock 4.9 that comes there - would be nice if that worked and users of at Ubuntu Trusty would not need to upgrade their compiler to get mbgl to build.

  4. kkaefer commented on May 4, 2015

    @kkaefer
    Member

    Android builds should use clang 3.5 IIRC.

  5. tmpsantos commented on May 4, 2015

    @tmpsantos
    Contributor

    I would be very cautious about this. Apparently we want to support windows, no?

    Check this why C++11 is not fully supported by Chromium (C++14 is not even considered):
    https://chromium-cpp.appspot.com/

    /cc @BergWerkGIS

  6. jfirebaugh commented on May 4, 2015

    @jfirebaugh
    ContributorAuthor

    Summarizing from scrum:

    • We don't currently build on Windows and don't forsee doing so in the near future.
    • In addition to potential C++11/14 issues, we'd need to port GL code or use ANGLE.
    • Support for the C++14 feature we need is in VS 2015 Preview, so may be generally available by the time we potentially want to support Windows.

    Seems like we have consensus to start adopting C++14 features that have widespread compiler support as needed. I'm going to start with the feature required for #1309. Post-Beta we can look at using std::make_unique and any other things we have polyfilled.

  7. jfirebaugh commented on May 4, 2015

    @jfirebaugh
    ContributorAuthor

    Done as part of #1412.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions