From 3db02d223670fd270c2e1666ebcf1b0e6597dc48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Wed, 23 Mar 2022 18:06:28 +0300 Subject: [PATCH] mdbx++: explicitly define `noexcept` copy-assignment ops as workaround for AppleClang > 13.3 bug. Try workaround for https://github.com/erthink/libmdbx/issues/278 --- mdbx.h++ | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mdbx.h++ b/mdbx.h++ index 2ef5e34a..2cda137f 100644 --- a/mdbx.h++ +++ b/mdbx.h++ @@ -2998,6 +2998,8 @@ public: MDBX_CXX11_CONSTEXPR reclaiming_options() noexcept {} MDBX_CXX11_CONSTEXPR reclaiming_options(const reclaiming_options &) noexcept = default; + MDBX_CXX14_CONSTEXPR reclaiming_options & + operator=(const reclaiming_options &) noexcept = default; reclaiming_options(MDBX_env_flags_t) noexcept; }; @@ -3015,6 +3017,8 @@ public: MDBX_CXX11_CONSTEXPR operate_options() noexcept {} MDBX_CXX11_CONSTEXPR operate_options(const operate_options &) noexcept = default; + MDBX_CXX14_CONSTEXPR operate_options & + operator=(const operate_options &) noexcept = default; operate_options(MDBX_env_flags_t) noexcept; }; @@ -3043,6 +3047,8 @@ public: durability(durability), reclaiming(reclaiming), options(options) {} MDBX_CXX11_CONSTEXPR operate_parameters(const operate_parameters &) noexcept = default; + MDBX_CXX14_CONSTEXPR operate_parameters & + operator=(const operate_parameters &) noexcept = default; MDBX_env_flags_t make_flags(bool accede = true, ///< \copydoc MDBX_ACCEDE bool use_subdirectory =