[cfe-commits] [libcxx] r119611 - /libcxx/trunk/include/algorithm
Howard Hinnant
hhinnant at apple.com
Wed Nov 17 17:47:02 PST 2010
Author: hhinnant
Date: Wed Nov 17 19:47:02 2010
New Revision: 119611
URL: http://llvm.org/viewvc/llvm-project?rev=119611&view=rev
Log:
LWG 1432
Modified:
libcxx/trunk/include/algorithm
Modified: libcxx/trunk/include/algorithm
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/algorithm?rev=119611&r1=119610&r2=119611&view=diff
==============================================================================
--- libcxx/trunk/include/algorithm (original)
+++ libcxx/trunk/include/algorithm Wed Nov 17 19:47:02 2010
@@ -256,7 +256,7 @@
template<class RandomAccessIterator, class UniformRandomNumberGenerator>
void shuffle(RandomAccessIterator first, RandomAccessIterator last,
- UniformRandomNumberGenerator& g);
+ UniformRandomNumberGenerator&& g);
template <class InputIterator, class Predicate>
bool
@@ -2717,7 +2717,11 @@
template<class _RandomAccessIterator, class _UniformRandomNumberGenerator>
void shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last,
+#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
+ _UniformRandomNumberGenerator&& __g)
+#else
_UniformRandomNumberGenerator& __g)
+#endif
{
typedef typename iterator_traits<_RandomAccessIterator>::difference_type difference_type;
typedef uniform_int_distribution<ptrdiff_t> _D;
More information about the cfe-commits
mailing list