Date: prev next · Thread: first prev next last
2016 Archives by date, by thread · List index


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

--- Comment #22 from Stephan Bergmann <sbergman@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.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.