[Lldb-commits] [lldb] r233106 - Fix build broken by missing `typename` keyword.

Zachary Turner zturner at google.com
Tue Mar 24 13:22:51 PDT 2015


Author: zturner
Date: Tue Mar 24 15:22:50 2015
New Revision: 233106

URL: http://llvm.org/viewvc/llvm-project?rev=233106&view=rev
Log:
Fix build broken by missing `typename` keyword.

Modified:
    lldb/trunk/source/Expression/ClangASTSource.cpp

Modified: lldb/trunk/source/Expression/ClangASTSource.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangASTSource.cpp?rev=233106&r1=233105&r2=233106&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangASTSource.cpp (original)
+++ lldb/trunk/source/Expression/ClangASTSource.cpp Tue Mar 24 15:22:50 2015
@@ -1548,11 +1548,12 @@ ImportOffsetMap(llvm::DenseMap<const D *
     // map, as the order will be non-deterministic.  Instead we have to sort by the offset
     // and then insert in sorted order.
     typedef llvm::DenseMap<const D *, O> MapType;
-    std::vector<typename MapType::value_type> sorted_items;
+    typedef typename MapType::value_type PairType;
+    std::vector<PairType> sorted_items;
     sorted_items.reserve(source_map.size());
     sorted_items.assign(source_map.begin(), source_map.end());
     std::sort(sorted_items.begin(), sorted_items.end(),
-              [](const MapType::value_type &lhs, const MapType::value_type &rhs)
+              [](const PairType &lhs, const PairType &rhs)
               {
                   return lhs.second < rhs.second;
               });





More information about the lldb-commits mailing list