"...git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "742d72f8bb051105484fd5cca11620493ffb0b2b"
Unverified Commit a5054f77 authored by Hoang Gia Minh's avatar Hoang Gia Minh Committed by GitHub
Browse files

[C++] Remove template parameters from constructors (#6514)

parent 3e6156a1
...@@ -614,7 +614,7 @@ class DenseBin : public Bin { ...@@ -614,7 +614,7 @@ class DenseBin : public Bin {
#endif #endif
std::vector<uint8_t> buf_; std::vector<uint8_t> buf_;
DenseBin<VAL_T, IS_4BIT>(const DenseBin<VAL_T, IS_4BIT>& other) DenseBin(const DenseBin<VAL_T, IS_4BIT>& other)
: num_data_(other.num_data_), data_(other.data_) {} : num_data_(other.num_data_), data_(other.data_) {}
}; };
......
...@@ -343,7 +343,7 @@ class MultiValDenseBin : public MultiValBin { ...@@ -343,7 +343,7 @@ class MultiValDenseBin : public MultiValBin {
std::vector<uint32_t> offsets_; std::vector<uint32_t> offsets_;
std::vector<VAL_T, Common::AlignmentAllocator<VAL_T, 32>> data_; std::vector<VAL_T, Common::AlignmentAllocator<VAL_T, 32>> data_;
MultiValDenseBin<VAL_T>(const MultiValDenseBin<VAL_T>& other) MultiValDenseBin(const MultiValDenseBin<VAL_T>& other)
: num_data_(other.num_data_), num_bin_(other.num_bin_), num_feature_(other.num_feature_), : num_data_(other.num_data_), num_bin_(other.num_bin_), num_feature_(other.num_feature_),
offsets_(other.offsets_), data_(other.data_) { offsets_(other.offsets_), data_(other.data_) {
} }
......
...@@ -430,8 +430,7 @@ class MultiValSparseBin : public MultiValBin { ...@@ -430,8 +430,7 @@ class MultiValSparseBin : public MultiValBin {
std::vector<INDEX_T> t_size_; std::vector<INDEX_T> t_size_;
std::vector<uint32_t> offsets_; std::vector<uint32_t> offsets_;
MultiValSparseBin<INDEX_T, VAL_T>( MultiValSparseBin(const MultiValSparseBin<INDEX_T, VAL_T>& other)
const MultiValSparseBin<INDEX_T, VAL_T>& other)
: num_data_(other.num_data_), : num_data_(other.num_data_),
num_bin_(other.num_bin_), num_bin_(other.num_bin_),
estimate_element_per_row_(other.estimate_element_per_row_), estimate_element_per_row_(other.estimate_element_per_row_),
......
...@@ -782,7 +782,7 @@ class SparseBin : public Bin { ...@@ -782,7 +782,7 @@ class SparseBin : public Bin {
SparseBin<VAL_T>* Clone() override; SparseBin<VAL_T>* Clone() override;
SparseBin<VAL_T>(const SparseBin<VAL_T>& other) SparseBin(const SparseBin<VAL_T>& other)
: num_data_(other.num_data_), : num_data_(other.num_data_),
deltas_(other.deltas_), deltas_(other.deltas_),
vals_(other.vals_), vals_(other.vals_),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment