You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BcpsBranchStrategy::clone is pure virtual. A derived class (DcoBranchStrategyRel for example) should implement it. For this base class data should also be copied. But base class (BcpsBranchStrategy) does not provide copy constructor nor copy assignment operator.
Since there is no explicit copy constructor, derived classes use compiler defined copy constructor (which only copies the fields of BcpsBranchStrategy). I think this will cause buggy software. BcpsBranchStrategy should have explicit copy constructor and assignment operator.
Aykut
The text was updated successfully, but these errors were encountered:
BcpsBranchStrategy::clone is pure virtual. A derived class (DcoBranchStrategyRel for example) should implement it. For this base class data should also be copied. But base class (BcpsBranchStrategy) does not provide copy constructor nor copy assignment operator.
Since there is no explicit copy constructor, derived classes use compiler defined copy constructor (which only copies the fields of BcpsBranchStrategy). I think this will cause buggy software. BcpsBranchStrategy should have explicit copy constructor and assignment operator.
Aykut
The text was updated successfully, but these errors were encountered: