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

std::variant<< typo #174

Open
zwimer opened this issue Mar 8, 2022 · 2 comments
Open

std::variant<< typo #174

zwimer opened this issue Mar 8, 2022 · 2 comments

Comments

@zwimer
Copy link
Contributor

zwimer commented Mar 8, 2022

When generating bindings for a not-small project, Binder produced this output for me. As you notice, the variant's angle brackets are doubled up: std::variant<<bool ending with >>. You can see in the double-quoted bit of text below what the variant should be.

cl.def("index", (unsigned long (std::variant<<bool, std::string, float, double, std::shared_ptr<const PyObj::VS>, unsigned char, unsigned short, unsigned int, unsigned long long, BigInt, std::shared_ptr<const Expr::Base>, Mode::FP::Rounding, Mode::FP::Width>>::*)() const) &std::variant<bool, std::basic_string<char, std::char_traits<char>, std::allocator<char>>, float, double, std::shared_ptr<const PyObj::VS>, unsigned char, unsigned short, unsigned int, unsigned long long, BigInt, std::shared_ptr<const Expr::Base>, Mode::FP::Rounding, Mode::FP::Width>::index, "C++: std::variant<bool, std::basic_string<char, std::char_traits<char>, std::allocator<char>>, float, double, std::shared_ptr<const PyObj::VS>, unsigned char, unsigned short, unsigned int, unsigned long long, BigInt, std::shared_ptr<const Expr::Base>, Mode::FP::Rounding, Mode::FP::Width>::index() const --> unsigned long");
@lyskov
Copy link
Member

lyskov commented Mar 8, 2022

Thank you for letting me know @zwimer ! This looks like an issue with Binder indeed. Would you be open to create a minimal example (ie .hpp file with dummy declarations) that lead to this behavior so i can debug and fix this locally? Thanks,

@zwimer
Copy link
Contributor Author

zwimer commented Mar 14, 2022

I can provide the full sized example, but I don't currently have the bandwidth to narrow it down. I can also provide: MacOS 12, compiled binder with LLVM 11.0.0git; along with the config file I used and CLI arguments used to run binder.

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

2 participants