Skip to content

Commit

Permalink
Fix coverity hits in boosting algorithms (#3006)
Browse files Browse the repository at this point in the history
Default assignment operator was added in 'prediction::Input' classes in AdaBoost, BrownBoost and LogitBoost algorithms to fix rule of three violations.
  • Loading branch information
Vika-F authored Dec 4, 2024
1 parent 4c848ef commit d074508
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class DAAL_EXPORT Input : public classifier::prediction::Input
public:
Input() {}
Input(const Input & other) : classifier::prediction::Input(other) {}
Input & operator=(const Input & other) = default;
virtual ~Input() {}

using super::get;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class DAAL_EXPORT Input : public classifier::prediction::Input
public:
Input() : classifier::prediction::Input() {}
Input(const Input & other) : classifier::prediction::Input(other) {}
Input & operator=(const Input & other) = default;
virtual ~Input() {}

using super::get;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class DAAL_EXPORT Input : public classifier::prediction::Input
public:
Input() : classifier::prediction::Input() {}
Input(const Input & other) : classifier::prediction::Input(other) {}
Input & operator=(const Input & other) = default;
virtual ~Input() {}

using super::get;
Expand Down

0 comments on commit d074508

Please sign in to comment.