Refactor #58
inVRs uses std::auto_ptr in several places
Status: | Resolved | Start date: | 04/21/2015 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% | |
Category: | - | |||
Target version: | - |
Description
Occurrences of std::auto_ptr should be replaced with C++11 smart pointers where available.
Associated revisions
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
History
#1 Updated by Johannes Zarl-Zierl over 9 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset r2634.