Ignore:
Timestamp:
01/02/13 16:45:16 (16 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Children:
11049:f4dd8dbc57bb, 11051:04009d17e84e
Message:

Fixed 'TExampleTable.clone' method (erroneous copy constructor for TExampleTable).

The 'clone' method calls the C++ copy constructor to copy the table,
but the default copy constructor fails to properly copy the instances
(both tables end up claiming ownership of the same memory space).

Fixed by implementing a copy constructor to make a deep copy of
the instances.

Fixes #1260

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/table.hpp

    r9410 r11048  
    4141  // Iterates through examples of basevector 
    4242  #define baseITERATE(x) ITERATE(vector<TExample>, x, examples) 
     43 
     44  TExampleTable(const TExampleTable& orig); 
    4345 
    4446  TExampleTable(PDomain, bool owns = true); 
Note: See TracChangeset for help on using the changeset viewer.