[llvm] r175129 - Add missing typename to unbreak the MSVC 2012 build.
Francois Pichet
pichet2000 at gmail.com
Wed Feb 13 19:24:15 PST 2013
Author: fpichet
Date: Wed Feb 13 21:24:14 2013
New Revision: 175129
URL: http://llvm.org/viewvc/llvm-project?rev=175129&view=rev
Log:
Add missing typename to unbreak the MSVC 2012 build.
Modified:
llvm/trunk/include/llvm/ADT/ImmutableMap.h
llvm/trunk/include/llvm/ADT/ImmutableSet.h
Modified: llvm/trunk/include/llvm/ADT/ImmutableMap.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ImmutableMap.h?rev=175129&r1=175128&r2=175129&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/ImmutableMap.h (original)
+++ llvm/trunk/include/llvm/ADT/ImmutableMap.h Wed Feb 13 21:24:14 2013
@@ -211,13 +211,13 @@ public:
friend class ImmutableMap;
public:
- typedef ImmutableMap<KeyT,ValT,ValInfo>::value_type value_type;
- typedef ImmutableMap<KeyT,ValT,ValInfo>::value_type_ref reference;
- typedef iterator::value_type *pointer;
+ typedef typename ImmutableMap<KeyT,ValT,ValInfo>::value_type value_type;
+ typedef typename ImmutableMap<KeyT,ValT,ValInfo>::value_type_ref reference;
+ typedef typename iterator::value_type *pointer;
typedef std::bidirectional_iterator_tag iterator_category;
- iterator::reference operator*() const { return itr->getValue(); }
- iterator::pointer operator->() const { return &itr->getValue(); }
+ typename iterator::reference operator*() const { return itr->getValue(); }
+ typename iterator::pointer operator->() const { return &itr->getValue(); }
key_type_ref getKey() const { return itr->getValue().first; }
data_type_ref getData() const { return itr->getValue().second; }
Modified: llvm/trunk/include/llvm/ADT/ImmutableSet.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ImmutableSet.h?rev=175129&r1=175128&r2=175129&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/ImmutableSet.h (original)
+++ llvm/trunk/include/llvm/ADT/ImmutableSet.h Wed Feb 13 21:24:14 2013
@@ -1060,13 +1060,13 @@ public:
friend class ImmutableSet<ValT,ValInfo>;
public:
- typedef ImmutableSet<ValT,ValInfo>::value_type value_type;
- typedef ImmutableSet<ValT,ValInfo>::value_type_ref reference;
- typedef iterator::value_type *pointer;
+ typedef typename ImmutableSet<ValT,ValInfo>::value_type value_type;
+ typedef typename ImmutableSet<ValT,ValInfo>::value_type_ref reference;
+ typedef typename iterator::value_type *pointer;
typedef std::bidirectional_iterator_tag iterator_category;
- iterator::reference operator*() const { return itr->getValue(); }
- iterator::pointer operator->() const { return &(operator*()); }
+ typename iterator::reference operator*() const { return itr->getValue(); }
+ typename iterator::pointer operator->() const { return &(operator*()); }
iterator& operator++() { ++itr; return *this; }
iterator operator++(int) { iterator tmp(*this); ++itr; return tmp; }
More information about the llvm-commits
mailing list