forked from OSchip/llvm-project
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:
parent
f574c27769
commit
872ac4b5f0
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue