Fix const correctness bug in __move_assign. Found and fixed by Ion GaztanĚaga.
llvm-svn: 139032
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 8668139f361f0da6a61759643660f06bc72afad9
diff --git a/include/deque b/include/deque
index 69682a1..87cbe59 100644
--- a/include/deque
+++ b/include/deque
@@ -977,14 +977,14 @@
private:
_LIBCPP_INLINE_VISIBILITY
- void __move_assign_alloc(const __deque_base& __c, true_type)
+ void __move_assign_alloc(__deque_base& __c, true_type)
_NOEXCEPT_(is_nothrow_move_assignable<allocator_type>::value)
{
__alloc() = _VSTD::move(__c.__alloc());
}
_LIBCPP_INLINE_VISIBILITY
- void __move_assign_alloc(const __deque_base& __c, false_type) _NOEXCEPT
+ void __move_assign_alloc(__deque_base& __c, false_type) _NOEXCEPT
{}
_LIBCPP_INLINE_VISIBILITY