Free cookie consent management tool by TermsFeed Policy Generator

Changeset 11948


Ignore:
Timestamp:
02/06/15 14:42:13 (10 years ago)
Author:
abeham
Message:

#2311: reusing old comparer in cloning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core/3.3/Collections/ItemSet.cs

    r11171 r11948  
    5252    protected ItemSet(ItemSet<T> original, Cloner cloner) {
    5353      cloner.RegisterClonedObject(original, this);
    54       set = new HashSet<T>(original.Select(x => cloner.Clone(x)));
     54      set = new HashSet<T>(original.Select(cloner.Clone), original.set.Comparer);
    5555    }
    5656    public ItemSet() : base() { }
Note: See TracChangeset for help on using the changeset viewer.