Open maksim-petukhov opened 1 year ago
auto_ptr is removed in C++17. This PR fixes gdal and ffmpeg plugin in a similar way than dae plugin was fixed (see https://github.com/openscenegraph/OpenSceneGraph/commit/863dee52e20f6446b9497aa4bf1bfaefc0074d1b), but also takes into account that __cplusplus always reports 199711L in msvc when not using special flag /Zc:__cplusplus (see https://learn.microsoft.com/en-us/cpp/build/reference/zc-cplusplus?view=msvc-170#remarks)
auto_ptr
__cplusplus
199711L
/Zc:__cplusplus
ptr_fun is also removed in C++17. That's why I provided C++17 compatible version of strip function for obj plugin.
ptr_fun
strip
auto_ptr
is removed in C++17. This PR fixes gdal and ffmpeg plugin in a similar way than dae plugin was fixed (see https://github.com/openscenegraph/OpenSceneGraph/commit/863dee52e20f6446b9497aa4bf1bfaefc0074d1b), but also takes into account that__cplusplus
always reports199711L
in msvc when not using special flag/Zc:__cplusplus
(see https://learn.microsoft.com/en-us/cpp/build/reference/zc-cplusplus?view=msvc-170#remarks)ptr_fun
is also removed in C++17. That's why I provided C++17 compatible version ofstrip
function for obj plugin.