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

QSharedPointer generates a warning

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P3: Somewhat important P3: Somewhat important
    • 4.7.0
    • 4.6.0, 4.6.1, 4.6.2
    • None
    • None
    • Visual Studio 2008 Sp1
      Qt 4.6.0, Qt 4.6.1, and Qt 4.6.2
      Windows XP and Windows 7 (64-bit OS compiling as a 32-bit application)

      The changes that were made to the QSharedPointer class when Qt was changed to version 4.6 generate warning C4291: "no matching operator delete found; memory will not be freed if initialization throws an exception". The included files provide a simple example of the warning being generated (a text file of the output is also included). My code is required to compile without warnings so this causes substantial problems. The warning appears to be originating from line 261 of the file qsharedpointer_impl.h.

        1. warning.7z
          606 kB
          user-5c144
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            tmacieir Thiago Macieira (closed Nokia identity) (Inactive)
            jirauser28997 user-5c144 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes