Remove VariantHasher and VariantComparator in favor of specializing HashMapHasherDefault and HashMapComparatorDefault.#111358
Conversation
…ing `HashMapHasherDefault` and `HashMapComparatorDefault`.
e862d63 to
d2ee378
Compare
akien-mga
left a comment
There was a problem hiding this comment.
Makes sense to me, but it's worth noting that (like any removal of APIs from headers) this breaks compatibility for thirdparty modules or platforms and user forks who may make use of it.
I'm starting to think that we may need to collect information on all those changes to core headers done recently to add to a subpage of the 4.6 migration guide for C++ engine modifications.
It would be possible to add a |
|
Ehh, I don't think that's necessary. Though if you really want to have some contingency, appending this to the end of #ifndef DISABLE_DEPRECATED
// Compatibility with pre-4.6 modules.
using VariantHasher = HashMapHasherDefault<Variant>;
using VariantComparator = HashMapComparatorDefault<Variant>;
#endif // DISABLE_DEPRECATEDSee also: an equivalent implementation in |
|
Thanks! |
VariantHasher and VariantComparator in favour of specialising HashMapHasherDefault and HashMapComparatorDefault.VariantHasher and VariantComparator in favor of specialising HashMapHasherDefault and HashMapComparatorDefault.
VariantHasher and VariantComparator in favor of specialising HashMapHasherDefault and HashMapComparatorDefault.VariantHasher and VariantComparator in favor of specializing HashMapHasherDefault and HashMapComparatorDefault.
HashMapHasherDefault. #106434Previously, to use
Variantin aHashMap(orAHashMaporHashSet), you'd have to supply it with the hasher and comparator explicitly.I change the implementation to specialise
HashMapHasherDefaultandHashMapComparatorDefault. Hence,HashMapcan simply be used asHashMap<Variant, X>for the default case.