Skip to content
Snippets Groups Projects

REFACT: Deprecate `auto_ptr`

Merged Luc Hermitte requested to merge lhermitte/otb:deprecate_auto_ptr into develop

Summary

Replace use of std::auto_ptr<> with std::unique_ptr<>

Rationale

auto_ptr has been deprecated in C++11 and completely removed from C++17 standard.

This was the last occurrence of this class which emits a few warnings.

Implementation Details

The internal type used in ossimAdapter is updated to use unique_ptr<> instead of auto_ptr<>. Along the update, the test expressions are simplified.

Copyright

The copyright owner is CNES and has signed the ORFEO ToolBox Contributor License Agreement.


Check before merging:

  • All discussions are resolved

  • At least 2 :thumbsup: votes from core developers, no :thumbsdown: vote.

  • The feature branch is (reasonably) up-to-date with the base branch

  • Dashboard is green

  • Copyright owner has signed the ORFEO ToolBox Contributor License Agreement

Edited by Luc Hermitte

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading