aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2010-08-11 17:10:04 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2010-08-11 17:10:04 +0000
commit633e8e192b5c2c3ff1fa29c5dfa86f42192acc90 (patch)
treeb1809a6c7c5ede6ad22dc3c09f8f139b753c7561 /libstdc++-v3/include
parent4c7aaebf4ddfac97a1c24373b0eb15ff8477fee7 (diff)
downloadgcc-633e8e192b5c2c3ff1fa29c5dfa86f42192acc90.zip
gcc-633e8e192b5c2c3ff1fa29c5dfa86f42192acc90.tar.gz
gcc-633e8e192b5c2c3ff1fa29c5dfa86f42192acc90.tar.bz2
stl_algo.h (shuffle): Change signature consistently with random_shuffle (US 121).
2010-08-11 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/stl_algo.h (shuffle): Change signature consistently with random_shuffle (US 121). * include/bits/algorithmfwd.h: Adjust. * testsuite/25_algorithms/shuffle/requirements/ explicit_instantiation/2.cc: Likewise. * testsuite/25_algorithms/shuffle/requirements/ explicit_instantiation/pod.cc: Likewise. From-SVN: r163102
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r--libstdc++-v3/include/bits/algorithmfwd.h2
-rw-r--r--libstdc++-v3/include/bits/stl_algo.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/bits/algorithmfwd.h b/libstdc++-v3/include/bits/algorithmfwd.h
index cbd7f6f..cf541bc 100644
--- a/libstdc++-v3/include/bits/algorithmfwd.h
+++ b/libstdc++-v3/include/bits/algorithmfwd.h
@@ -521,7 +521,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
#if defined(__GXX_EXPERIMENTAL_CXX0X__) && defined(_GLIBCXX_USE_C99_STDINT_TR1)
template<typename _RAIter, typename _UGenerator>
void
- shuffle(_RAIter, _RAIter, _UGenerator&);
+ shuffle(_RAIter, _RAIter, _UGenerator&&);
#endif
template<typename _RAIter>
diff --git a/libstdc++-v3/include/bits/stl_algo.h b/libstdc++-v3/include/bits/stl_algo.h
index fe2edb9..eecfd24 100644
--- a/libstdc++-v3/include/bits/stl_algo.h
+++ b/libstdc++-v3/include/bits/stl_algo.h
@@ -4133,7 +4133,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
typename _UniformRandomNumberGenerator>
void
shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last,
- _UniformRandomNumberGenerator& __g)
+ _UniformRandomNumberGenerator&& __g)
{
// concept requirements
__glibcxx_function_requires(_Mutable_RandomAccessIteratorConcept<