diff options
author | Howard Hinnant <hhinnant@apple.com> | 2011-09-02 20:42:31 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2011-09-02 20:42:31 +0000 |
commit | 8668139f361f0da6a61759643660f06bc72afad9 (patch) | |
tree | 50d45981fcdda13885405ff66ded4740901dfc88 /libcxx/include/__split_buffer | |
parent | 09d153eb12e907572772a0533ccc7bf3aebef1bf (diff) | |
download | bcm5719-llvm-8668139f361f0da6a61759643660f06bc72afad9.tar.gz bcm5719-llvm-8668139f361f0da6a61759643660f06bc72afad9.zip |
Fix const correctness bug in __move_assign. Found and fixed by Ion Gaztañaga.
llvm-svn: 139032
Diffstat (limited to 'libcxx/include/__split_buffer')
-rw-r--r-- | libcxx/include/__split_buffer | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/__split_buffer b/libcxx/include/__split_buffer index dbf3ce0182a..d5b8f0a3ee2 100644 --- a/libcxx/include/__split_buffer +++ b/libcxx/include/__split_buffer @@ -141,14 +141,14 @@ public: private: _LIBCPP_INLINE_VISIBILITY - void __move_assign_alloc(const __split_buffer& __c, true_type) + void __move_assign_alloc(__split_buffer& __c, true_type) _NOEXCEPT_(is_nothrow_move_assignable<allocator_type>::value) { __alloc() = _VSTD::move(__c.__alloc()); } _LIBCPP_INLINE_VISIBILITY - void __move_assign_alloc(const __split_buffer& __c, false_type) _NOEXCEPT + void __move_assign_alloc(__split_buffer& __c, false_type) _NOEXCEPT {} _LIBCPP_INLINE_VISIBILITY |