From 805e22b2051e9c6a75377ea6599654d7415da483 Mon Sep 17 00:00:00 2001 From: zack Date: Mon, 16 Dec 2002 18:23:00 +0000 Subject: Merge basic-improvements-branch to trunk git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60174 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/include/bits/stl_bvector.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libstdc++-v3/include/bits/stl_bvector.h') diff --git a/libstdc++-v3/include/bits/stl_bvector.h b/libstdc++-v3/include/bits/stl_bvector.h index 2c97d470582..da72b6460ab 100644 --- a/libstdc++-v3/include/bits/stl_bvector.h +++ b/libstdc++-v3/include/bits/stl_bvector.h @@ -410,7 +410,7 @@ template template void _M_initialize_range(_ForwardIterator __first, _ForwardIterator __last, forward_iterator_tag) { - size_type __n = distance(__first, __last); + size_type __n = std::distance(__first, __last); _M_initialize(__n); copy(__first, __last, _M_start); } @@ -430,14 +430,14 @@ template _ForwardIterator __first, _ForwardIterator __last, forward_iterator_tag) { if (__first != __last) { - size_type __n = distance(__first, __last); + size_type __n = std::distance(__first, __last); if (capacity() - size() >= __n) { copy_backward(__position, end(), _M_finish + difference_type(__n)); copy(__first, __last, __position); _M_finish += difference_type(__n); } else { - size_type __len = size() + max(size(), __n); + size_type __len = size() + std::max(size(), __n); _Bit_type * __q = _M_bit_alloc(__len); iterator __i = copy(begin(), __position, iterator(__q, 0)); __i = copy(__first, __last, __i); @@ -592,7 +592,7 @@ template template void _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, forward_iterator_tag) { - size_type __len = distance(__first, __last); + size_type __len = std::distance(__first, __last); if (__len < size()) erase(copy(__first, __last, begin()), end()); else { @@ -677,7 +677,7 @@ template _M_finish += difference_type(__n); } else { - size_type __len = size() + max(size(), __n); + size_type __len = size() + std::max(size(), __n); _Bit_type * __q = _M_bit_alloc(__len); iterator __i = copy(begin(), __position, iterator(__q, 0)); fill_n(__i, __n, __x); -- cgit v1.2.1