A collection of minor type-o fixes. The first two aren't testable, but all tests pass with them. I stumbled across them while experimenting with a std::move that checks its argument for non-const. The third corrects a test that is currently failing.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@190563 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant 2013-09-12 00:10:44 +00:00
parent 7f9f52e6c6
commit f9d2680e19
3 changed files with 3 additions and 3 deletions
include
test/containers/sequences/forwardlist/forwardlist.cons

@ -753,7 +753,7 @@ private:
: __cc(std::forward<_Args>(__args)...) {}
__value_type(const __value_type& __v)
: __cc(std::move(__v.__cc)) {}
: __cc(__v.__cc) {}
__value_type(__value_type&& __v)
: __nc(std::move(__v.__nc)) {}

@ -641,7 +641,7 @@ private:
: __cc(std::forward<_Args>(__args)...) {}
__value_type(const __value_type& __v)
: __cc(std::move(__v.__cc)) {}
: __cc(__v.__cc) {}
__value_type(__value_type&& __v)
: __nc(std::move(__v.__nc)) {}

@ -25,7 +25,7 @@ void check_allocator(unsigned n, Allocator const &alloc = Allocator())
typedef std::forward_list<T, Allocator> C;
C d(n, alloc);
assert(d.get_allocator() == alloc);
assert(std::distance(l.begin(), l.end()) == n);
assert(std::distance(d.begin(), d.end()) == n);
#endif
}