blob: 0a7bb296912872f4abc765270028989f757e6037 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
From 30905b3fa4f6b2a621e4b21b94f44b3e4bff8f6f Mon Sep 17 00:00:00 2001
From: Darssin <1298961026@qq.com>
Date: Mon, 4 Sep 2023 16:36:04 +0800
Subject: [PATCH] Avoid boost::phoenix::placeholders::uarg1..10 ODR violations
form https://github.com/boostorg/phoenix/pull/116
---
boost/phoenix/stl/tuple.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/boost/phoenix/stl/tuple.hpp b/boost/phoenix/stl/tuple.hpp
index a83014ace..d5dc3dd0d 100644
--- a/boost/phoenix/stl/tuple.hpp
+++ b/boost/phoenix/stl/tuple.hpp
@@ -110,7 +110,7 @@ namespace boost { namespace phoenix {
namespace placeholders {
#define BOOST_PP_LOCAL_LIMITS (1, BOOST_PHOENIX_ARG_LIMIT)
#define BOOST_PP_LOCAL_MACRO(N) \
- auto uarg##N = \
+ auto const uarg##N = \
boost::phoenix::get_<(N)-1>(boost::phoenix::placeholders::arg1);
#include BOOST_PP_LOCAL_ITERATE()
}
--
2.27.0
|