You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to use boost::multi_index::tag in module interface #85
When trying to use boost::multi_index::tag in the implementation of the interface part of a C++20 module, I get a GCC error that the boost part uses internal linkage. Here's a reproducible example: https://godbolt.org/z/5e7KWj8qz
Activity
d7d1cd commentedon Oct 14, 2025
The problem is that the boost::mpl::aux::ptr_to_ref function template is declared as static. Is there a reason for this, or is it just a bug?
vinniefalco commentedon Oct 15, 2025
Someone is still using MPL ?
d7d1cd commentedon Oct 16, 2025
Boost itself uses MPL in its implementation of multi_index::tag
d7d1cd commentedon Oct 16, 2025
To solve the problem, I made a PR boostorg/mpl#90