Skip to content

libc++ inline namespaces #29

Open
Open
@phdum

Description

@phdum

When I run c++2py on a function in a class method that returns a complex array I get:

c.add_method("""triqs::arrays::array<std::__1::complex<double>,2> get_array ()""",
             doc = r"""""")

Here the __1 is an inline namespace that libc++ uses, and compiles correctly. However, the __1 should be removed (to give simply std::complex<double>), otherwise there is an error when compiling using libstdc++.

Questions:

  1. How are inline namespaces treated by c++2py?

  2. Is the stripping of inline namespaces also done for compound return types? (see also Qualification in compound return types #28 ).

Activity

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

        Participants

        @phdum

        Issue actions

          libc++ inline namespaces · Issue #29 · TRIQS/cpp2py