rsmith added a comment. In https://reviews.llvm.org/D46845#1105638, @erik.pilkington wrote:
> make __map_node_handle use a const_cast on the key instead of type-punning > between pair<const K, V> and pair<K, V>. Add calls to std::launder in key() > and before inserting a node handle. Can you do this as a separate change, prior to adding node_handle? I would in particular expect this to result in the removal of the `union __value_type` from <map>. https://reviews.llvm.org/D46845 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits