summaryrefslogtreecommitdiffstats
path: root/external/boost
diff options
context:
space:
mode:
Diffstat (limited to 'external/boost')
-rw-r--r--external/boost/0001-This-bug-was-fixed-in-VC-2013-workaround-no-longer-a.patch.240
-rw-r--r--external/boost/UnpackedTarball_boost.mk3
2 files changed, 43 insertions, 0 deletions
diff --git a/external/boost/0001-This-bug-was-fixed-in-VC-2013-workaround-no-longer-a.patch.2 b/external/boost/0001-This-bug-was-fixed-in-VC-2013-workaround-no-longer-a.patch.2
new file mode 100644
index 000000000000..6645cae56a67
--- /dev/null
+++ b/external/boost/0001-This-bug-was-fixed-in-VC-2013-workaround-no-longer-a.patch.2
@@ -0,0 +1,40 @@
+From c0e9b4de19c465ab4cff52288b87d527b826cd22 Mon Sep 17 00:00:00 2001
+From: dodheim <dodheim@gmail.com>
+Date: Sun, 23 Aug 2015 20:43:54 -0700
+Subject: [PATCH] This bug was fixed in VC++ 2013, workaround no longer
+ applicable.
+
+---
+ include/boost/proto/expr.hpp | 2 +-
+ include/boost/proto/generate.hpp | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/include/boost/proto/expr.hpp b/include/boost/proto/expr.hpp
+index 1bd6498..2c355c2 100644
+--- a/include/boost/proto/expr.hpp
++++ b/include/boost/proto/expr.hpp
+@@ -92,7 +92,7 @@ namespace boost { namespace proto
+
+ // Work-around for:
+ // https://connect.microsoft.com/VisualStudio/feedback/details/765449/codegen-stack-corruption-using-runtime-checks-when-aggregate-initializing-struct
+- #if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1700))
++ #if BOOST_WORKAROUND(BOOST_MSVC, < 1800)
+ template<typename T, typename Expr, typename C, typename U>
+ BOOST_FORCEINLINE
+ Expr make_terminal(T &t, Expr *, proto::term<U C::*> *)
+diff --git a/include/boost/proto/generate.hpp b/include/boost/proto/generate.hpp
+index 4762741..3a600c4 100644
+--- a/include/boost/proto/generate.hpp
++++ b/include/boost/proto/generate.hpp
+@@ -230,7 +230,7 @@ namespace boost { namespace proto
+
+ // Work-around for:
+ // https://connect.microsoft.com/VisualStudio/feedback/details/765449/codegen-stack-corruption-using-runtime-checks-when-aggregate-initializing-struct
+- #if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1700))
++ #if BOOST_WORKAROUND(BOOST_MSVC, < 1800)
+ template<typename Class, typename Member>
+ BOOST_FORCEINLINE
+ Extends<expr<tag::terminal, proto::term<Member Class::*> > > operator ()(expr<tag::terminal, proto::term<Member Class::*> > const &e) const
+--
+2.29.2
+
diff --git a/external/boost/UnpackedTarball_boost.mk b/external/boost/UnpackedTarball_boost.mk
index 046f7e6da1b2..4ab57368fa1d 100644
--- a/external/boost/UnpackedTarball_boost.mk
+++ b/external/boost/UnpackedTarball_boost.mk
@@ -41,6 +41,9 @@ boost_patches += msvc2017.patch.0
# "Removed deprecated std::allocator<void>":
boost_patches += c++20-allocator.patch.0
+# First appears in <https://github.com/boostorg/proto/releases/tag/boost-1.72.0>:
+boost_patches += 0001-This-bug-was-fixed-in-VC-2013-workaround-no-longer-a.patch.2
+
$(eval $(call gb_UnpackedTarball_UnpackedTarball,boost))
$(eval $(call gb_UnpackedTarball_set_tarball,boost,$(BOOST_TARBALL)))