Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-39532

Add a c++14 configuration feature

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Done
    • Icon: P4: Low P4: Low
    • 5.4.0 Alpha
    • 5.4.0
    • Build tools: qmake
    • None
    • 40d3ab564b02ed72d43ae1d29c638556003d5e17

      qmake currently supports putting the compiler into C++11 mode by placing CONFIG += c++11 into the project file. This is implemented by the configuration feature file mkspecs/features/c++11.prf, and results in the -std=c++0x switch being passed to g++ or clang.

      Clang 3.4 already supports the upcoming C++14 standard, and GCC 4.9.0 supports a useful subset. Both require the -std=c++1y switch to enable this mode. Visual Studio 2013 also supports a useful subset, and requires no switches to enable it.

      It would be very useful to add a configuration feature to allow the use of CONFIG += c++14 in qmake project files, to cause the -std=c++1y switch to be passed to g++ or clang.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            thiago Thiago Macieira
            oktalist Mat Sutcliffe
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes