[libcxx-commits] [libcxx] [libc++] Mark std::unique_ptr::release() as nodiscard (PR #110847)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Sun Oct 6 12:53:17 PDT 2024


philnik777 wrote:

@zmodem @davidben When you `release()` the pointer, do you use a custom deleter, or also the default deleter? If it's the former we could look into applying `[[nodiscard]]` only when it's the default deleter. That's why I never closed the referenced bug.

https://github.com/llvm/llvm-project/pull/110847


More information about the libcxx-commits mailing list