Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix gcc11 compatibility #4803

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/io/dense_bin.hpp
Original file line number Diff line number Diff line change
@@ -470,7 +470,7 @@ class DenseBin : public Bin {
#endif
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_) {}
};

2 changes: 1 addition & 1 deletion src/io/multi_val_dense_bin.hpp
Original file line number Diff line number Diff line change
@@ -217,7 +217,7 @@ class MultiValDenseBin : public MultiValBin {
std::vector<uint32_t> offsets_;
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_),
offsets_(other.offsets_), data_(other.data_) {
}
2 changes: 1 addition & 1 deletion src/io/multi_val_sparse_bin.hpp
Original file line number Diff line number Diff line change
@@ -302,7 +302,7 @@ class MultiValSparseBin : public MultiValBin {
std::vector<INDEX_T> t_size_;
std::vector<uint32_t> offsets_;

MultiValSparseBin<INDEX_T, VAL_T>(
MultiValSparseBin(
const MultiValSparseBin<INDEX_T, VAL_T>& other)
: num_data_(other.num_data_),
num_bin_(other.num_bin_),
2 changes: 1 addition & 1 deletion src/io/sparse_bin.hpp
Original file line number Diff line number Diff line change
@@ -598,7 +598,7 @@ class SparseBin : public Bin {

SparseBin<VAL_T>* Clone() override;

SparseBin<VAL_T>(const SparseBin<VAL_T>& other)
SparseBin(const SparseBin<VAL_T>& other)
: num_data_(other.num_data_),
deltas_(other.deltas_),
vals_(other.vals_),