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

Make type equivalence check for string and ostream more robust #142

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

mamoll
Copy link
Contributor

@mamoll mamoll commented May 19, 2021

On macOS 11.3 / Xcode 12.5 with castxml 0.4.3 installed via MacPorts, some uses of std::string were not correctly identified (the decl_string was ::std::basic_string<char,std::char_traits<char>,std::allocator<char>>, without any spaces, which didn't match anything). This caused decl_wrappers.python_traits.is_immutable to return the wrong thing, which in turn caused decl_wrappers.python_traits.call_traits to generate broken code. This was a pain to track down. The responsible code seemed rather brittle. This is a simple attempt to make it slightly more robust.

@iMichka iMichka force-pushed the pr-more-robust-equivalence-check branch from b81a7c7 to bd4a882 Compare July 31, 2023 19:08
@iMichka iMichka changed the title make type equivalence check for string and ostream more robust Make type equivalence check for string and ostream more robust Jul 31, 2023
@iMichka iMichka merged commit 5d2e2f4 into CastXML:develop Aug 1, 2023
5 of 6 checks passed
@iMichka
Copy link
Contributor

iMichka commented Aug 1, 2023

Thanks. I know this part of the code is hard to debug. Nothin I'll change anytime soon. I'm not investing much time in pygccxml anymore, thus the huge delay to get your pull request merged. I'll make sure to publish a new release soon.

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

Successfully merging this pull request may close these issues.

2 participants