[Libreoffice-commits] core.git: unotools/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Dec 7 10:08:23 UTC 2018


 unotools/source/i18n/resmgr.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3d79f0ff9eedec74a131796016add94f4a1be02d
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Dec 7 09:07:02 2018 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Dec 7 11:07:56 2018 +0100

    Clang (and GCC) always has __cplusplus >= C++17 now
    
    ...after 665ac8f32d3aaaf7c27e8976e14fd4819edbf79b "All supported versions of
    Clang and GCC support at least C++17 now".  And even if __cplusplus might still
    be < 201703L for old versions that only support -std=c++1z and not -std=c++17,
    this #if should probably be enabled for those too.
    
    (MSVC will first need adding /Zc:__cplusplus before it has a correct __cplusplus
    value.)
    
    Change-Id: If932b293d66e704357b10836839d221634bb1a3b
    Reviewed-on: https://gerrit.libreoffice.org/64751
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/unotools/source/i18n/resmgr.cxx b/unotools/source/i18n/resmgr.cxx
index 8d4fcb5eac33..be66f9445816 100644
--- a/unotools/source/i18n/resmgr.cxx
+++ b/unotools/source/i18n/resmgr.cxx
@@ -21,7 +21,7 @@
 // workdir/UnpackedTarball/boost/boost/locale/format.hpp using "std::auto_ptr<data> d;", but must
 // come very early here in case <memory> is already (indirectly) included earlier:
 #include <config_libcxx.h>
-#if HAVE_LIBCXX && __cplusplus >= 201703L
+#if HAVE_LIBCXX
 #define _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR
 #elif defined _MSC_VER && __cplusplus >= 201703L
 #define _HAS_AUTO_PTR_ETC 1


More information about the Libreoffice-commits mailing list