Ticket #1148 (closed patch: done)
Implement "clone" method for CallSignature
|Reported by:||flh||Owned by:|
Currently, CallSignature relies on the default clone method, which does not work as expected: when cloning a CallSignature, it looses all its stored parameters.
The attached patch implements clone for CallSignature: it duplicates the argument list (but not the arguments themselves), and all other attributes of CallSignature.
It also fixes a small bug in hash creation in CallSignature: the hash is made of pointers to Pcc_cell, but the hash is created as a hash of PMCs, which prevents cloning.
New test for clone included.