mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-12 00:10:52 +00:00
21 lines
1.0 KiB
Diff
21 lines
1.0 KiB
Diff
From 665047aac26ad4d96b266d87504b3a88ad21b37e Mon Sep 17 00:00:00 2001
|
|
From: djowel <djowel@gmail.com>
|
|
Date: Mon, 28 Aug 2023 08:33:46 +0800
|
|
Subject: [PATCH] avoid ODR by making this const
|
|
|
|
diff --git a/boost/phoenix/stl/tuple.hpp b/boost/phoenix/stl/tuple.hpp
|
|
index a83014ac..fb9440d2 100644
|
|
--- a/boost/phoenix/stl/tuple.hpp
|
|
+++ b/boost/phoenix/stl/tuple.hpp
|
|
@@ -109,8 +109,8 @@ namespace boost { namespace phoenix {
|
|
// Make unpacked argument placeholders
|
|
namespace placeholders {
|
|
#define BOOST_PP_LOCAL_LIMITS (1, BOOST_PHOENIX_ARG_LIMIT)
|
|
- #define BOOST_PP_LOCAL_MACRO(N) \
|
|
- auto uarg##N = \
|
|
+ #define BOOST_PP_LOCAL_MACRO(N) \
|
|
+ const auto uarg##N = \
|
|
boost::phoenix::get_<(N)-1>(boost::phoenix::placeholders::arg1);
|
|
#include BOOST_PP_LOCAL_ITERATE()
|
|
}
|