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

Conditionally replace deprecated/removed C++98 std::random_shuffle by… #23

Conversation

DanielaE
Copy link

@DanielaE DanielaE commented May 2, 2017

… a drop-in implementation.

Signed-off-by: Daniela Engert dani@ngrt.de

… a drop-in implementation.

Signed-off-by: Daniela Engert <dani@ngrt.de>
@DanielaE
Copy link
Author

DanielaE commented May 2, 2017

Tested with msvc 9.0, 10.0, 12.0, 14.0 and 14.1 . The 14.x compilers run in C++17 mode which defines BOOST_NO_CXX98_RANDOM_SHUFFLE and triggers the replacement code path.

igaztanaga added a commit that referenced this pull request Jun 8, 2017
GitHub Pull #23
GitHub Pull #24
@igaztanaga
Copy link
Member

Commit:

db14782

uses a different approach implementing random_shuffle and uses it for all standard versions.

Many thanks for the report and the patch.

@igaztanaga igaztanaga closed this Jun 8, 2017
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.

None yet

2 participants