[Libreoffice-bugs] [Bug 38835] strip out non-trivial globals before main
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sun May 3 09:15:31 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=38835
--- Comment #54 from Stephan Bergmann <sbergman at redhat.com> ---
(In reply to Buovjaga from comment #53)
> (In reply to ibarkleyyeung from comment #52)
> > Quick question, is comment 9 still valid?
> >
> > That is, is LibreOffice still supposed to be compatible with C++03? I don't
> > know what the minimum C++ version is across the various compilers. Is the
> > C++ version documented somewhere?
> >
> > I see uses of unique_ptr and unordered_map, so I'm assuming at least C++11.
> > And C++11 ensures function-local statics are initialized exactly once even
> > if multiple threads call the function.
> >
> > Just checking before I make a change.
>
> Please refer to the compiler baseline:
> https://git.libreoffice.org/core/+/master/README.md
> Cross-check it with https://en.cppreference.com/w/cpp/compiler_support
> LibreOffice can use the vast majority of features in C++17 and its standard
> library.
...and comment 9 is indeed obsolete since
<https://git.libreoffice.org/core/+/6517fd2107a5a71290afad8850da0eab51519bc6%5E!>
"HAVE_THREADSAFE_STATICS sould always be true"
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200503/015421cc/attachment.htm>
More information about the Libreoffice-bugs
mailing list