summaryrefslogtreecommitdiffstats
path: root/libcxx/include/array
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2016-03-07 21:57:10 +0000
committerMarshall Clow <mclow.lists@gmail.com>2016-03-07 21:57:10 +0000
commitee66eb132857737995fc3c22777d4705f3afd82b (patch)
tree569ecf5186027e29ca857b053b86fc98bddafc27 /libcxx/include/array
parentde2d6a303316640952721dc4de1aa08e01abaae0 (diff)
downloadbcm5719-llvm-ee66eb132857737995fc3c22777d4705f3afd82b.tar.gz
bcm5719-llvm-ee66eb132857737995fc3c22777d4705f3afd82b.zip
non-member swap for array was mistakenly taking const ref params. Fixed and added test. Thanks to Ben Craig for the catch
llvm-svn: 262866
Diffstat (limited to 'libcxx/include/array')
-rw-r--r--libcxx/include/array2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/array b/libcxx/include/array
index 8866eaf6b46..f0350ea216e 100644
--- a/libcxx/include/array
+++ b/libcxx/include/array
@@ -279,7 +279,7 @@ typename enable_if
__is_swappable<_Tp>::value,
void
>::type
-swap(const array<_Tp, _Size>& __x, const array<_Tp, _Size>& __y)
+swap(array<_Tp, _Size>& __x, array<_Tp, _Size>& __y)
_NOEXCEPT_(__is_nothrow_swappable<_Tp>::value)
{
__x.swap(__y);
OpenPOWER on IntegriCloud