boostorg / heap

Boost.Heap
https://boost.org/libs/heap
18 stars 39 forks source link

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

Closed DanielaE closed 7 years ago

DanielaE commented 7 years ago

… a drop-in implementation.

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

DanielaE commented 7 years ago

Tested on msvc 9.0, 10.0, 12.0, 14.0 and 14.1 . Compiler versions 14.x define BOOST_NO_CXX98_NO_RANDOM_SHUFFLE when in C++17 mode, thereby triggering the new code paths.

timblechmann commented 7 years ago

nice, thanks a lot!