Ignore:
Timestamp:
Sep 21, 2022, 7:41:41 AM (4 months ago)
Author:
Peter
Message:

GCC -Wdeprecated-copy complains when some but not all of copy ctor, dtor and operator= are user-implemented. When the implementation is identical with the one generated by the compiler, there is no reason to keep the code. DataWeightProxy? is a different story (see #986)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/Target.cc

    r4051 r4245  
    116116
    117117
    118   Target::~Target(void)
    119   {
    120   }
    121 
    122118  bool Target::binary(size_t i) const
    123119  {
     
    212208  }
    213209
    214   const Target& Target::operator=(const Target& other)
    215   {
    216     binary_ = other.binary_;
    217     classes_ = other.classes_;
    218     class_map_ = other.class_map_;
    219     labels_ = other.labels_;
    220     return *this;
    221   }
    222 
    223210
    224211  std::ostream& operator<<(std::ostream& s, const Target& a)
Note: See TracChangeset for help on using the changeset viewer.