diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2015-04-28 20:42:56 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2015-04-28 20:42:56 +0100 |
commit | 2e7e2075d1f1b0ac9b962adde9833d2040f513e6 (patch) | |
tree | 6c836a28dd2c82f5dbf5b84a10f54d9c4ab3d526 | |
parent | 0088583b2556a68d4e521d5ced6ae38a946c7205 (diff) | |
download | gcc-2e7e2075d1f1b0ac9b962adde9833d2040f513e6.zip gcc-2e7e2075d1f1b0ac9b962adde9833d2040f513e6.tar.gz gcc-2e7e2075d1f1b0ac9b962adde9833d2040f513e6.tar.bz2 |
stl_algo.h (random_shuffle): Only define for hosted implementations.
* include/bits/stl_algo.h (random_shuffle): Only define for hosted
implementations.
From-SVN: r222542
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/stl_algo.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 88c0d97..16e43c3 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,10 @@ 2015-04-28 Jonathan Wakely <jwakely@redhat.com> + * include/bits/stl_algo.h (random_shuffle): Only define for hosted + implementations. + +2015-04-28 Jonathan Wakely <jwakely@redhat.com> + * Makefile.am (SUBDIRS): Move python to hosted_source. * Makefile.in: Regenerate. * acinclude.m4 (glibcxx_SUBDIRS): Reorder. diff --git a/libstdc++-v3/include/bits/stl_algo.h b/libstdc++-v3/include/bits/stl_algo.h index 53c455b..56cc743 100644 --- a/libstdc++-v3/include/bits/stl_algo.h +++ b/libstdc++-v3/include/bits/stl_algo.h @@ -4420,6 +4420,7 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO std::__iterator_category(__result)); } +#if _GLIBCXX_HOSTED /** * @brief Randomly shuffle the elements of a sequence. * @ingroup mutating_algorithms @@ -4450,6 +4451,7 @@ _GLIBCXX_BEGIN_NAMESPACE_ALGO std::iter_swap(__i, __j); } } +#endif /** * @brief Shuffle the elements of a sequence using a random number |