commit | fbec7fce73afc8f01126d22d10a375438f28fc98 | [log] [tgz] |
---|---|---|
author | Louis Dionne <ldionne.2@gmail.com> | Tue Dec 15 11:45:53 2020 -0500 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Dec 15 10:44:47 2020 -0800 |
tree | 3d6b4a9b38a80638bd0c82dc1cd2e03f9dfd36a1 | |
parent | 8dffa57ba3a880860b54c6827546b07d9c660a56 [diff] |
[libc++] Fix allocate_shared when used with an explicitly convertible allocator When the allocator is only explicitly convertible from other specializations of itself, the new version of std::allocate_shared would not work because it would try to do an implicit conversion. This patch fixes the problem and adds a test so that we don't fall into the same trap in the future. GitOrigin-RevId: a00290ed10a6b4e9f6e9be44ceec367562f270c6