Bump version to 24.04.3.4
[LibreOffice.git] / external / boost / 0001-Avoid-boost-phoenix-placeholders-uarg1.10-ODR-violat.patch.2
blobe0989727fb5aedbc66720ca6c78ad7299d7d4d1a
1 From 50973dc10ea16931245ea61a00b2ce9041acc5ba Mon Sep 17 00:00:00 2001
2 From: Stephan Bergmann <sbergman@redhat.com>
3 Date: Wed, 4 Jan 2023 17:33:31 +0100
4 Subject: [PATCH] Avoid boost::phoenix::placeholders::uarg1..10 ODR violations
6 Those variables, defined in an include file, had external linkage, causing ODR
7 violations.  Make them const to implicitly give them internal linkage.
8 ---
9  include/boost/phoenix/stl/tuple.hpp | 2 +-
10  1 file changed, 1 insertion(+), 1 deletion(-)
12 diff --git a/include/boost/phoenix/stl/tuple.hpp b/include/boost/phoenix/stl/tuple.hpp
13 index a83014a..7f61a40 100644
14 --- a/include/boost/phoenix/stl/tuple.hpp
15 +++ b/include/boost/phoenix/stl/tuple.hpp
16 @@ -110,7 +110,7 @@ namespace boost { namespace phoenix {
17      namespace placeholders {
18          #define BOOST_PP_LOCAL_LIMITS (1, BOOST_PHOENIX_ARG_LIMIT)
19          #define BOOST_PP_LOCAL_MACRO(N)                                                \
20 -            auto uarg##N =                                                             \
21 +            auto const uarg##N =                                                       \
22              boost::phoenix::get_<(N)-1>(boost::phoenix::placeholders::arg1);
23          #include BOOST_PP_LOCAL_ITERATE()
24      }
25 -- 
26 2.38.1