Actually nullability annotations are no longer just for humans: clang does understand them and does issue a warning (becoming an error) when you try to pass a value annotated as Nullable to a parameter annotated as Nonnull.
--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CACQca%3DfR-U0bJ5ik2169q6wWSK%3DNY7Q%2Be1fqxXe3MhB14jwosg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/cxx/9586cd75-04a5-4ccd-9fe7-e3d1fb111b61n%40chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAC_ixdzNPURd7FAUSTwd3MGw1nqpi0WyBOeoikm1ns-yxAjQVA%40mail.gmail.com.
The main issue with migrating NoDestructor is there are a lot of classes that friend NoDestructor. Those will all need to be updated; preferably to use the pass key idiom, since *how* NoDestructor constructs the type is an internal implementation detail, and absl::NoDestructor happens to use a helper class to instantiate the type.
--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/cxx/7059292c-74db-4620-9902-9d0bef5c8909n%40chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAF8qwaDK1u-q2zTQErHPJi_eXdWgdjFiJpCHF%2Bgufu4LnAHk0Q%40mail.gmail.com.
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// PLEASE READ: Do you really need a singleton? If possible, use a
// function-local static of type base::NoDestructor<T> instead:
//
// Factory& Factory::GetInstance() {
// static base::NoDestructor<Factory> instance;
// return *instance;
// }
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAKQnr0R8cB0-bNZQ49Jyp7ygR_KpSjZo7ZSP%3DuK6urF1Avqg2Q%40mail.gmail.com.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAF3XrKridUgPV23mJJ4MnN1XzoygnzRYSOtYhwk2agtabrapiQ%40mail.gmail.com.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAJauWCGYFaqkVDfzXuQrZMEMpf8Wyt2bj9ydBXY6CNP_k_Xbuw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/cxx/acd57f90-1dad-442f-930d-6b46cb430714n%40chromium.org.
--
You received this message because you are subscribed to the Google Groups "cxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cxx+uns...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/cxx/a98e7b94-e9cc-4150-b35b-1e19b9d1db19n%40chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/cxx/CAF3XrKpuWad3Y0iXDC2GOFC_1SPSkqecz632s4Qv%3DSvn55N1_A%40mail.gmail.com.