Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libc++ inline namespaces #29

Open
phdum opened this issue Jan 20, 2020 · 0 comments
Open

libc++ inline namespaces #29

phdum opened this issue Jan 20, 2020 · 0 comments

Comments

@phdum
Copy link
Member

phdum commented Jan 20, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant