Skip to content
Snippets Groups Projects
Commit 831def7a authored by Andrew Maclean's avatar Andrew Maclean
Browse files

std::auto_ptr is marked deprecated in C++11/14 and will be removed in C++17.

This fix selects std::unique_ptr when the compiler is identified as being C++11
 compliant.

To ensure the compiler is C++11 compliant or better, __cplusplus, _MSC_VER and
_CPPLIB_VER are tested.
_MSC_VER is used since Microsoft compilers still use 19711L
 as the __cplusplus value.
_CPPLIB_VER is used to test for better Dinkumware support.

The variable VTK_HAS_STD_UNIQUE_PTR is defined if std::unique_ptr is available.
parent 9aacc935
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment