From b2057c8dfee3a39fdb06fd4b42ecadca003133ba Mon Sep 17 00:00:00 2001 From: Andrzej Krzemienski Date: Mon, 16 Feb 2026 15:40:05 +0100 Subject: [PATCH] MSVC 14.1 fix -- 3rd attempt --- include/boost/optional/detail/union_optional.hpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/boost/optional/detail/union_optional.hpp b/include/boost/optional/detail/union_optional.hpp index 54bff41..89d50d0 100644 --- a/include/boost/optional/detail/union_optional.hpp +++ b/include/boost/optional/detail/union_optional.hpp @@ -124,7 +124,6 @@ struct constexpr_guarded_storage //~constexpr_guarded_storage() = default; #if (defined(_MSC_VER) && 1910 <= _MSC_VER && _MSC_VER <= 1916) -private: // Workaround for MSVC 14.1x bug where it eagerly tries to define the copy/move operations // these are declared but never defined constexpr_guarded_storage(const constexpr_guarded_storage&); @@ -169,7 +168,6 @@ struct fallback_guarded_storage #if (defined(_MSC_VER) && 1910 <= _MSC_VER && _MSC_VER <= 1916) // Workaround for MSVC 14.1x bug where it eagerly tries to define the copy/move operations // These are declared but never defined -private: fallback_guarded_storage(const fallback_guarded_storage&); fallback_guarded_storage(fallback_guarded_storage&&); fallback_guarded_storage& operator=(const fallback_guarded_storage&);