diff options
| author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-05 19:53:11 +0000 |
|---|---|---|
| committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-05 19:53:11 +0000 |
| commit | 00800310dc87e09a34359a22fe685fdcd9fb3a88 (patch) | |
| tree | 66e73a2280bb19bdebdd44a5c8c780d1386d50a2 /libstdc++-v3/include/profile/unordered_map | |
| parent | 2ec3af9cde65d410eb736c96300293c335476316 (diff) | |
| download | ppe42-gcc-00800310dc87e09a34359a22fe685fdcd9fb3a88.tar.gz ppe42-gcc-00800310dc87e09a34359a22fe685fdcd9fb3a88.zip | |
2010-05-05 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/23_containers/vector/bool/capacity/29134.cc: Adjust
for profile-mode too.
* testsuite/23_containers/vector/bool/modifiers/insert/31370.cc:
Likewise.
2010-05-05 Paolo Carlini <paolo.carlini@oracle.com>
* include/profile/unordered_map (unordered_map<>::insert(_InputIter,
_InputIter), unordered_multimap<>::insert(_InputIter, _InputIter)):
Fix typo, don't call base() on __first and __last.
2010-05-05 Paolo Carlini <paolo.carlini@oracle.com>
Fix profile-mode vs -std=c++0x
* include/profile/impl/profiler_trace.h: Do not include the
whole <algorithm>, include <bits/stl_heap.h> (additionally
to <bits/stl_algobase.h>).
(__write_cost_factors): Replace std::for_each with open-coding.
(__set_cost_factors): Likewise.
(__report): Likewise; use std::make_heap / std::sort_heap
instead of std::sort.
(__report_cost_factors): Replace std::remove with open-coding.
(__warn, __cost_factor_writer, __cost_factor_setter): Remove.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159082 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/profile/unordered_map')
| -rw-r--r-- | libstdc++-v3/include/profile/unordered_map | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/profile/unordered_map b/libstdc++-v3/include/profile/unordered_map index 929a72d0e4c..6e832c80735 100644 --- a/libstdc++-v3/include/profile/unordered_map +++ b/libstdc++-v3/include/profile/unordered_map @@ -196,7 +196,7 @@ namespace __profile insert(_InputIter __first, _InputIter __last) { size_type __old_size = _Base::bucket_count(); - _Base::insert(__first.base(), __last.base()); + _Base::insert(__first, __last); _M_profile_resize(__old_size, _Base::bucket_count()); } @@ -430,7 +430,7 @@ namespace __profile insert(_InputIter __first, _InputIter __last) { size_type __old_size = _Base::bucket_count(); - _Base::insert(__first.base(), __last.base()); + _Base::insert(__first, __last); _M_profile_resize(__old_size, _Base::bucket_count()); } |

