[Bug 38835] strip out non-trivial globals before main

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Feb 3 17:31:36 UTC 2016


https://bugs.documentfoundation.org/show_bug.cgi?id=38835

--- Comment #22 from Stephan Bergmann <sbergman at redhat.com> ---
(In reply to Björn Michaelsen from comment #21)
> Note that constants (currently either #defines or "static const ..." can --
> with C++11 -- be turned into constexprs:
> 
>  http://en.cppreference.com/w/cpp/language/constexpr
> 
> which should be generally preferable.

...but isn't available in MSVC 2013 (and reportedly only partially in MSVC
2015, aka MSVC 14, <http://en.cppreference.com/w/cpp/compiler_support>). 
That's why SAL_CONSTEXPR (include/sal/types.h), and can only use it in ways
that do not /require/ it to expand to "constexpr".

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20160203/c3fd57de/attachment.html>


More information about the LibreOffice mailing list