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

QSharedPointer generates a warning

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • 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)

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes