Commits

nat_linden committed 44443fd

MAINT-1175: Still grappling with MSVC idiosyncracies.
Maybe it's failing to correctly handle overloaded transform() methods?

Comments (0)

Files changed (1)

indra/llcommon/lltypeinfolookup.h

 
     iterator begin() { return transform(mMap.begin()); }
     iterator end()   { return transform(mMap.end()); }
-    const_iterator begin() const { return transform(mMap.begin()); }
-    const_iterator end() const   { return transform(mMap.end()); }
+    const_iterator begin() const { return const_transform(mMap.begin()); }
+    const_iterator end() const   { return const_transform(mMap.end()); }
     bool empty() const { return mMap.empty(); }
     std::size_t size() const { return mMap.size(); }
 
 
     const_iterator find(const std::type_info* key) const
     {
-        return transform(mMap.find(key->name()));
+        return const_transform(mMap.find(key->name()));
     }
 
 private:
     {
         return iterator(iter, boost::mem_fn(&impl_value_type::second));
     }
-    const_iterator transform(impl_const_iterator iter)
+    const_iterator const_transform(impl_const_iterator iter)
     {
         return const_iterator(iter, boost::mem_fn(&impl_value_type::second));
     }