[libcxx-commits] [libcxx] [libc++] Use a custom once_flag implementation for locale::id::__get() (PR #212235)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 30 04:18:19 PDT 2026


https://github.com/ldionne commented:

I am not clearly seeing the benefit of doing this, despite the PR description. What's wrong with using a `once_flag` -- isn't it meant exactly for that purpose? Naively, this seems to be "regressing" since we're reimplementing that we already have a tool for.

I suspect there is a subtlety that would convince me otherwise?

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


More information about the libcxx-commits mailing list