7 Nov
2016
7 Nov
'16
8:35 a.m.
On 11/07/16 05:46, Edward Diener wrote:
Does Boost config currently have a macro to determine whether the c++11 std::shuffle algorithm is supported for a particular compiler ? If not supporting /std:c++latest by changing std::random_shuffle to std::shuffle will not be possible for c++03 libraries.
FWIW, in Boost.Log I'm using my local random_shuffle[1] regardless of the standard library version. Maybe that would be a better solution than conditioning your code on config macros. [1]: https://github.com/boostorg/log/blob/develop/src/core.cpp#L60