Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/20/16 17:14:41 (8 years ago)
Author:
bburlacu
Message:

#2672: Add cloning constructors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/OnlineCalculators/OnlineAccuracyCalculator.cs

    r14293 r14294  
    4040
    4141    // private constructor used internally by the Clone() method
    42     private OnlineAccuracyCalculator(OnlineAccuracyCalculator other) {
     42    protected OnlineAccuracyCalculator(OnlineAccuracyCalculator other, Cloner cloner = null) {
    4343      correctlyClassified = other.correctlyClassified;
    4444      n = other.n;
     
    106106      var clone = cloner.GetClone(this);
    107107      if (clone == null) {
    108         clone = (IDeepCloneable)this.Clone();
     108        clone = new OnlineAccuracyCalculator(this);
    109109        cloner.RegisterClonedObject(this, clone);
    110110      }
Note: See TracChangeset for help on using the changeset viewer.