Removed extension in [unordered_][multi]map which allowed one to emplace using just...
authorHoward Hinnant <hhinnant@apple.com>
Thu, 4 Jul 2013 20:59:16 +0000 (20:59 +0000)
committerHoward Hinnant <hhinnant@apple.com>
Thu, 4 Jul 2013 20:59:16 +0000 (20:59 +0000)
commit4a95f9eb7e9b2ffaea49d424e74099d54099ce36
treeb175c642b8d7ecaa210d5dc591e552821dff3969
parentbbdf669bde57f1a2f8fa1a3d4fbb46b1e3c25a4c
Removed extension in [unordered_][multi]map which allowed one to emplace using just an argument for the key, as opposed to using piecewise_construct.  However a bug report exposed that this created an unfortunate ambiguity.  People who are currently using the extension will be notified the next time they compile, and will have to change to using piecewise_construct.  There are no ABI issues with the removal of this extension.  This fixes llvm.org/bugs/show_bug.cgi?id=16542

llvm-svn: 185666
12 files changed:
libcxx/include/map
libcxx/include/unordered_map
libcxx/test/containers/associative/map/map.access/index_tuple.pass.cpp [new file with mode: 0644]
libcxx/test/containers/associative/map/map.modifiers/emplace.pass.cpp
libcxx/test/containers/associative/map/map.modifiers/emplace_hint.pass.cpp
libcxx/test/containers/associative/multimap/multimap.modifiers/emplace.pass.cpp
libcxx/test/containers/associative/multimap/multimap.modifiers/emplace_hint.pass.cpp
libcxx/test/containers/unord/unord.map/unord.map.elem/index_tuple.pass.cpp [new file with mode: 0644]
libcxx/test/containers/unord/unord.map/unorder.map.modifiers/emplace.pass.cpp
libcxx/test/containers/unord/unord.map/unorder.map.modifiers/emplace_hint.pass.cpp
libcxx/test/containers/unord/unord.multimap/unord.multimap.modifiers/emplace.pass.cpp
libcxx/test/containers/unord/unord.multimap/unord.multimap.modifiers/emplace_hint.pass.cpp