Ticket #9549: dynamic_properties.patch
File dynamic_properties.patch, 1.3 KB (added by , 9 years ago) |
---|
-
dynamic_property_map.hpp
117 117 118 118 namespace detail { 119 119 120 // Trying to work around VC++ problem that seems to relate to having too many121 // functions named "get"122 template <typename PMap, typename Key>123 typename boost::property_traits<PMap>::reference124 get_wrapper_xxx(const PMap& pmap, const Key& key) {125 using boost::get;126 return get(pmap, key);127 }128 129 120 // 130 121 // dynamic_property_map_adaptor - 131 122 // property-map adaptor to support runtime polymorphism. … … 171 162 172 163 virtual boost::any get(const any& key_) 173 164 { 174 return get_wrapper_xxx(property_map_, any_cast<typename boost::property_traits<PropertyMap>::key_type>(key_)); 165 using boost::get; 166 return get(property_map_, any_cast<typename boost::property_traits<PropertyMap>::key_type>(key_)); 175 167 } 176 168 177 169 virtual std::string get_string(const any& key_) 178 170 { 179 171 std::ostringstream out; 180 out << get_wrapper_xxx(property_map_, any_cast<typename boost::property_traits<PropertyMap>::key_type>(key_)); 172 using boost::get; 173 out << get(property_map_, any_cast<typename boost::property_traits<PropertyMap>::key_type>(key_)); 181 174 return out.str(); 182 175 } 183 176