You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2014/01/03 10:23:59 UTC

[Bug 123960] New: Replace uses of auto_ptr with standard compliant smart pointers

https://issues.apache.org/ooo/show_bug.cgi?id=123960

            Bug ID: 123960
        Issue Type: DEFECT
           Summary: Replace uses of auto_ptr with standard compliant smart
                    pointers
           Product: General
           Version: 4.1.0-dev
          Hardware: All
                OS: All
            Status: CONFIRMED
          Severity: normal
          Priority: P3
         Component: code
          Assignee: issues@openoffice.apache.org
          Reporter: hdu@apache.org
                CC: issues@openoffice.apache.org
            Blocks: 122766, 122208

The auto_ptr template was deprecated in C++11 because it has many well known
problems that are solved by tts modern counterpart unique_ptr.

Auto_ptr was also often abused in cases where it shouldn't have been used. The
shared_ptr and weak_ptr might be the suitable replacements in these cases. Also
if auto_ptr was misemployed to manage arrays then the replacement should get
custom deleters to do the delete[] for destructing the array. It's too bad that
e.g. boost's shared_array_ptr didn't make it into the C++11 standard.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.