Skip to content

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

Description

@dinoruic

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions