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

fix/backport compatibility issues for msvc 2019 #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

medelhoff
Copy link

Summary:
this fix allows compilation with current (C++17 compliant) MS compilers. The goal was not to backport fixes from upstream (which reach the same goal) but to keep near the BSI-blessed version.

  • use _DISABLE_EXTENDED_ALIGNED_STORAGE to keep (nonstandard) alignment
  • use c++17 (mainly for std::filesystem, which is in fact not used in upstream any more)
    • use correct namespace for filesystem in c++17
  • random_shuffle has changed in c++17, backport fix from upstream
  • some includes are checked more rigorously

Background:
The most straight forward way to ensure that compiler- and platform-library-fixes (especially for security issues) is to ensure compatibility with current compilers.

Note: the impending roll-up, which is nearer to upstream will make this fix unnecessary. It should not be merged into this branch, if no pressing reasons emerge.

* use _DISABLE_EXTENDED_ALIGNED_STORAGE to keep (nonstandard) alignment
* use c++17 (mainly for std::filesystem, which is in fact not used in upstream any more)
   * use correct namespace for filesystem in c++17
* random_shuffle has changed in c++17, backport fix from upstream
* some includes are checked more rigorously
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