Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-903 Support for the upcoming c++0x
  3. QTCREATORBUG-6239

Automatically add relevent defines for C++11 support

    XMLWordPrintable

Details

    Description

      When using C+11, e.g. by passing -std=c0x to gcc, precompiler definitions are added (_GXX_EXPERIMENTAL_CXX0X_ for g+) which exposes the associated standard library functionality.
      QtCreator is not aware of these defines, and thus new functionality is not available in auto-completion and is marked as an error. To work arround this, I have to add
      DEFINES = _GXX_EXPERIMENTAL_CXX0X_ in my .pro file if I'm using C+11.

      Maybe the mkspeck should be updated to add the defines when needed for each supported compiler.

      Attachments

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

        Activity

          People

            hunger Tobias Hunger
            antoinep92 Antoine Poliakov
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes