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

c++0x assignment with initializer list marked as wrong code

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • Qt Creator 2.7.0
    • C/C++/Obj-C++ Support
    • None
    • mingw-w64 (GCC 4.4) under Windows

      Although

      std::vector<double> Q2 = { 24, 32, 45, 60, 80, 110 };
      

      is not marked as incorrect,

      std::vector<double> Q2;
      Q2 = { 24, 32, 45, 60, 80, 110 };
      

      the second line here is.

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

            erikv Erik Verbruggen
            rubenvb Ruben Van Boxem
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes