Replace all uses of auto_ptr with unique_ptr

Bug #1210677 reported by Paul J. Lucas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
In Progress
Medium
Chris Hillery

Bug Description

auto_ptr is deprecated in C++ in favor of unique_ptr. All uses of auto_ptr should therefore be replaced by unique_ptr. In most cases, this will be a simple global search & replace since (I believe) unique_ptr is upward API compatible with auto_ptr.

Although it may not matter for this change, note that unique_ptr, unlike auto_ptr, correctly works with C++ array types, i.e., unique_ptr<T[]>.

Assigned to Chris since auto_ptr is chiefly used in the resource stuff. (It's also used in other places, but, again, it should be a simple search & replace.)

Related branches

Revision history for this message
Chris Hillery (ceejatec) wrote :

Marking this for 3.0 since (I believe?) at least some of the auto_ptr<> uses are in public APIs.

Changed in zorba:
milestone: none → 3.0
Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

I thought they were used in the public API also, but a simple recursive grep inside include/zorba returns nothing.

Chris Hillery (ceejatec)
Changed in zorba:
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.