Boost logo

Boost :

Subject: Re: [boost] [config] std::shuffle support
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2016-11-07 03:35:04


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk