Introduce feature-test macro BOOST_NO_CXX98_RANDOM_SHUFFLE

The algorithm std::random_shuffle was marked as deprecated in C++14 and is removed from the upcoming C++17 standard. The name itself is still reserved and library implementations may continue to ship it. In this sense, support for std::random_shuffle must be regarded as purely optional and a feature-test macro is required to test for its presence.

Signed-off-by: Daniela Engert <dani@ngrt.de>
This commit is contained in:
Daniela Engert
2017-04-09 08:59:41 +02:00
parent 8acd1c464d
commit f3cea5a8e4
3 changed files with 17 additions and 4 deletions

View File

@@ -3770,7 +3770,7 @@
that describe C++17 features not supported</a>
</h3></div></div></div>
<p>
The following macros describe features in the 2016 ISO C++ standard, formerly
The following macros describe features in the 2017 ISO C++ standard, formerly
known as C++1z, that are not yet supported by a particular compiler or library.
</p>
<div class="informaltable"><table class="table">
@@ -3815,7 +3815,18 @@
</p>
</td>
</tr>
</tbody>
<tr>
<td>
<p>
<code class="computeroutput"><span class="identifier">BOOST_NO_CXX98_RANDOM_SHUFFLE</span></code>
</p>
</td>
<td>
<p>
The compiler does no longer support <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">random_shuffle</span><span class="special">()</span></code>. It was deprecated in C++14 and is removed from C++17.
</p>
</td>
</tr></tbody>
</table></div>
</div>
<div class="section">