[Lldb-commits] [lldb] r167764 - /lldb/trunk/include/lldb/Core/UniqueCStringMap.h
Daniel Malea
daniel.malea at intel.com
Mon Nov 12 14:16:27 PST 2012
Author: dmalea
Date: Mon Nov 12 16:16:27 2012
New Revision: 167764
URL: http://llvm.org/viewvc/llvm-project?rev=167764&view=rev
Log:
Replace const_iterator with iterator to build against libstdc++
- libstdc++ defines vector::erase(iterator) but not vector::erase(const_iterator)
Modified:
lldb/trunk/include/lldb/Core/UniqueCStringMap.h
Modified: lldb/trunk/include/lldb/Core/UniqueCStringMap.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Core/UniqueCStringMap.h?rev=167764&r1=167763&r2=167764&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Core/UniqueCStringMap.h (original)
+++ lldb/trunk/include/lldb/Core/UniqueCStringMap.h Mon Nov 12 16:16:27 2012
@@ -318,14 +318,14 @@
{
size_t num_removed = 0;
Entry search_entry (unique_cstr);
- const_iterator end = m_map.end();
- const_iterator begin = m_map.begin();
- const_iterator lower_pos = std::lower_bound (begin, end, search_entry);
+ iterator end = m_map.end();
+ iterator begin = m_map.begin();
+ iterator lower_pos = std::lower_bound (begin, end, search_entry);
if (lower_pos != end)
{
if (lower_pos->cstring == unique_cstr)
{
- const_iterator upper_pos = std::upper_bound (lower_pos, end, search_entry);
+ iterator upper_pos = std::upper_bound (lower_pos, end, search_entry);
if (lower_pos == upper_pos)
{
m_map.erase (lower_pos);
More information about the lldb-commits
mailing list