diff options
| -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 |
