Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow building gdal, dae, ffmpeg and obj plugins with /std:c++17 msvc flag #1246

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

maksim-petukhov
Copy link

@maksim-petukhov maksim-petukhov commented Jul 21, 2023

auto_ptr is removed in C++17. This PR fixes gdal and ffmpeg plugin in a similar way than dae plugin was fixed (see 863dee5), 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)

ptr_fun is also removed in C++17. That's why I provided C++17 compatible version of strip function for obj plugin.

@maksim-petukhov maksim-petukhov changed the title Allow building gdal plugin in C++17 msvc mode Allow building gdal, dae and ffmpeg plugins with /std:c++17 msvc flag Jul 21, 2023
fix again

fix one more time
fix
@maksim-petukhov maksim-petukhov changed the title Allow building gdal, dae and ffmpeg plugins with /std:c++17 msvc flag Allow building gdal, dae, ffmpeg and obj plugins with /std:c++17 msvc flag Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant