Fix const correctness bug in __move_assign. Found and fixed by Ion GaztanĚaga.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@139032 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/list b/include/list
index fa515e0..900e2ec 100644
--- a/include/list
+++ b/include/list
@@ -444,14 +444,14 @@
{}
_LIBCPP_INLINE_VISIBILITY
- void __move_assign_alloc(const __list_imp& __c, true_type)
+ void __move_assign_alloc(__list_imp& __c, true_type)
_NOEXCEPT_(is_nothrow_move_assignable<__node_allocator>::value)
{
__node_alloc() = _VSTD::move(__c.__node_alloc());
}
_LIBCPP_INLINE_VISIBILITY
- void __move_assign_alloc(const __list_imp& __c, false_type)
+ void __move_assign_alloc(__list_imp& __c, false_type)
_NOEXCEPT
{}
};