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.

llvm-svn: 190563
This commit is contained in:
Howard Hinnant 2013-09-12 00:10:44 +00:00
parent f574c27769
commit 872ac4b5f0
3 changed files with 3 additions and 3 deletions

View File

@ -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)) {}

View File

@ -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)) {}

View File

@ -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
}