Commit 8db1e79a authored by Shawn Waldon's avatar Shawn Waldon

Use override/final/=delete anytime the compiler supports them

This makes the VTK_USE_CXX11_FEATURES a flag that sets the
CMAKE_CXX_STANDARD and CMAKE_CXX_STANDARD_REQUIRED flags rather than
affecting vtkConfigure.h
parent 279ff7cd
Pipeline #24749 passed with stage
......@@ -150,14 +150,17 @@
# define VTK_MAXPATH 32767 // Possible with Windows "extended paths"
#endif
#cmakedefine VTK_USE_CXX11_FEATURES
#ifdef VTK_USE_CXX11_FEATURES
#if (__cplusplus >= 201103L) || ( defined(_MSC_VER) && _MSC_VER >= 1700 )
# define VTK_OVERRIDE override
# define VTK_FINAL final
# define VTK_DELETE_FUNCTION =delete
#else
# define VTK_OVERRIDE
# define VTK_FINAL
#endif
#if (__cplusplus >= 201103L) || ( defined(_MSC_VER) && _MSC_VER >= 1800 )
# define VTK_DELETE_FUNCTION =delete
#else
# define VTK_DELETE_FUNCTION
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment