Skip to content

Commit

Permalink
Unify implementations of copy constructors and assignment operators i…
Browse files Browse the repository at this point in the history
…n GBT
  • Loading branch information
Vika-F committed Dec 6, 2024
1 parent 753b2db commit 739e1e3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ class DAAL_EXPORT Input : public algorithms::regression::training::Input
Input();

/** Copy constructor */
Input(const Input & other) : algorithms::regression::training::Input(other) {}
Input(const Input & other);

Input & operator=(const Input & other);

virtual ~Input() {};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ namespace prediction
{
namespace interface1
{
Input::Input() = default;
Input::Input(const Input & other) = default;
Input & Input::operator=(const Input & other) = default;

/**
* Returns an input object for making gradient boosted trees model-based prediction
* \param[in] id Identifier of the input object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ __DAAL_REGISTER_SERIALIZATION_CLASS(Result, SERIALIZATION_DECISION_FOREST_REGRES

/** Default constructor */
Input::Input() : algorithms::regression::prediction::Input(lastModelInputId + 1) {}
Input::Input(const Input & other) : algorithms::regression::prediction::Input(other) {}
Input::Input(const Input & other) = default;
Input & Input::operator=(const Input & other) = default;

/**
* Returns an input object for making gradient boosted trees model-based prediction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ Status Parameter::check() const

/** Default constructor */
Input::Input() : algorithms::regression::training::Input(lastInputId + 1) {}
Input::Input(const Input & other) = default;
Input & Input::operator=(const Input & other) = default;

/**
* Returns an input object for gradient boosted trees model-based training
Expand Down

0 comments on commit 739e1e3

Please sign in to comment.