Skip to content

Unable to use boost::multi_index::tag in module interface #85

Closed

Description

@d7d1cd

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

  1. d7d1cd commented on Oct 14, 2025

    @d7d1cd
    Author

    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?

  2. vinniefalco commented on Oct 15, 2025

    @vinniefalco
    Member

    Someone is still using MPL ?

  3. transferred this issue fromboostorg/booston Oct 15, 2025
  4. d7d1cd commented on Oct 16, 2025

    @d7d1cd
    Author

    Someone is still using MPL ?

    Boost itself uses MPL in its implementation of multi_index::tag

  5. d7d1cd commented on Oct 16, 2025

    @d7d1cd
    Author

    To solve the problem, I made a PR boostorg/mpl#90

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions