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

tech_library default copy constructor is not fully copying the class #664

Open
dinoruic opened this issue Oct 17, 2024 · 1 comment
Open

Comments

@dinoruic
Copy link

mockturtle::tech_library contains member variables super_utils and struct_library which both contain a reference to _gates. When mockturtle::tech_library is copied, these references will keep pointing to the original location rather than to the new copied location.

The short-term solution is to disable the default copy constructor. Longer-term it would be great to properly implement a copy constructor.

(This is not urgent as we've worked around it).

@aletempiac
Copy link
Member

Thank you for reporting! For now, I opted for the short-term solution. If you further suggestions or changes, please feel free to submit a PR at any time.

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