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

write template directive before template instance #1679

Merged
merged 4 commits into from
Apr 18, 2024

Conversation

excaliburtb
Copy link
Contributor

in newer swig versions. 4.2.1 confirmed.. maybe issue with any 4.x version, a template with a private copy constructor or operator will generate setters for the instance because swig doesn't know what the template is. swig documentation says to write the %template directive first.

This PR does that though I'm no expert on regex. feel free to rework as needed but this PR gets the job done for swig 4.2.1 and is backwards compatible with 3.0.12

See attachment to reproduce the error:

template_error.zip

@coveralls
Copy link

coveralls commented Mar 27, 2024

Coverage Status

coverage: 55.945% (-0.007%) from 55.952%
when pulling 0454562 on excaliburtb:swig_template_fix
into 5065d96 on nasa:master.

…ntaining class so that private methods are honored
@sharmeye
Copy link
Contributor

sharmeye commented Apr 4, 2024

@alexlin0 you wrote this in perl, this is your fault. Please read this and tell us what it says

@excaliburtb
Copy link
Contributor Author

template_error_v2.zip

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.

3 participants