Refactor #58

inVRs uses std::auto_ptr in several places

Added by Johannes Zarl-Zierl over 5 years ago. Updated over 5 years ago.

Status:ResolvedStart date:04/21/2015
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


Occurrences of std::auto_ptr should be replaced with C++11 smart pointers where available.

Associated revisions

Revision 2634
Added by Johannes Zarl-Zierl over 5 years ago

Use std::unique_ptr instead of std::auto_ptr.

This silences deprecation warnings in "newer" compilers. For now, a fallback
has been implemented to use auto_ptr when unique_ptr is not available. This is
very light-weight (preprocessor definition), but will of course break when
someone uses unique_ptr in a way that is not compatible to an auto_ptr.

When the dependencies of inVRs are next reviewed, it would make sense to
require a newer compiler and disable this workaround (and maybe other
workarounds in cmake/platformtests.cmake).

Closes #58


#1 Updated by Johannes Zarl-Zierl over 5 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r2634.

Also available in: Atom PDF