[libcxx-commits] [libcxx] [libc++][NFC] Explicity use std::swap (PR #189112)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Mar 29 02:36:11 PDT 2026
frederick-vs-ja wrote:
> We were getting errors saying calls with swap were ambiguous because our code defined another swap causing the ambiguity.
Could you post the example that caused the errors?
I believe the C++ standard expects swapping objects in the previously way. If your fancy pointer fails to be _Cpp17Swappable_, then either the fancy pointer type or your `swap` functions need to be fixed.
https://github.com/llvm/llvm-project/pull/189112
More information about the libcxx-commits
mailing list