Skip to content

Commit

Permalink
stl/tuple: change uarg##N to internal linkage
Browse files Browse the repository at this point in the history
8b6a9c2 (std::tuple support (Resolving #103) (#104), 2021-03-11) put
uarg##N in all translation units, which includes
boost/phoenix/stl/tuple.hpp or boost/phoenix/stl.hp, with external
linkage. Thus, we'll run into below error:

> multiple definition of `boost::phoenix::placeholders::uarg1'

Change it to internal linkage.
  • Loading branch information
sgn committed Nov 29, 2022
1 parent faadf75 commit 99b3bdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/phoenix/stl/tuple.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 = \
const auto uarg##N = \
boost::phoenix::get_<(N)-1>(boost::phoenix::placeholders::arg1);
#include BOOST_PP_LOCAL_ITERATE()
}
Expand Down

0 comments on commit 99b3bdf

Please sign in to comment.