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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
            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.

Reply via email to