This prevents unintended ADL: https://gcc.godbolt.org/z/EHw3Gy
This issue was mentioned as an addendum in https://bugs.llvm.org/show_bug.cgi?id=44398.
Thanks to @Quuxplusone for the test case and filing the bug.
Paths
| Differential D74289
[libcxx] Fix unqualified call to 'ref' inside shared_ptr(unique_ptr<U, D>) ClosedPublic Authored by logan-5 on Feb 8 2020, 12:56 PM.
Details Summary This prevents unintended ADL: https://gcc.godbolt.org/z/EHw3Gy This issue was mentioned as an addendum in https://bugs.llvm.org/show_bug.cgi?id=44398. Thanks to @Quuxplusone for the test case and filing the bug.
Diff Detail
Event TimelineHerald added subscribers: libcxx-commits, ldionne, christof. · View Herald TranscriptFeb 8 2020, 12:56 PM This revision is now accepted and ready to land.Feb 20 2020, 9:23 AM Closed by commit rG092a57f50821: [libc++] Fix unqualified call to 'ref' inside shared_ptr(unique_ptr<U, D>) (authored by logan-5, committed by ldionne). · Explain WhyFeb 20 2020, 9:34 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 245678 libcxx/include/memory
libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/unique_ptr.pass.cpp
|