Skip to content

libc++ inline namespaces #29

@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 ).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions