[libcxx-commits] [PATCH] D65667: [libcxx] Early-initialize error_category singletons
Hubert Tong via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Aug 5 17:34:04 PDT 2019
hubert.reinterpretcast added a comment.
In D65667#1615205 <https://reviews.llvm.org/D65667#1615205>, @mclow.lists wrote:
> The good news is that the constructor of the singleton object in libc++ is under your control. It can be constructed whenever you choose, just by calling `generic_category()`.
The lifetime of the object returned by `generic_category()` seems underspecified to me. Is there an objection to treating the behaviour as undesirable? It seems unfriendly to require users to collect possible `error_category` instances during initialization in order to keep `error_code`s around during program termination.
Repository:
rCXX libc++
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65667/new/
https://reviews.llvm.org/D65667
More information about the libcxx-commits
mailing list