work around (fixed) libstdc++ bug for heterogeneous mutation
Summary: N4387 lifted the restrictions on `pair` and `tuple` construction that the element types must be implicitly convertible to the target element types. Prior to GCC 6, this document was not implemented in libstdc++. There are other subsequent fixes to address LWG2367, for exmaple. The upstream implementation for N4387 is here: https://github.com/gcc-mirror/gcc/commit/d3c64041b32b6962ad6b2d879231537a477631fb This diff adds the `insert` overloads to work around these issues as well as test coverage. Note that the following overload still wouldn't work: m.insert({sp, x}) since the compiler is not able to deduce the element types without attempting to construct a `pair`. Reviewed By: yfeldblum, nbronson Differential Revision: D9117504 fbshipit-source-id: c6fae625bf4d9518cb2b4bcc76465b004c4cd253
Showing
Please register or sign in to comment