From 091622fa2a9daa0efddf390379f5330775d96f61 Mon Sep 17 00:00:00 2001 From: aleqs Date: Mon, 15 Nov 2021 15:02:00 +0000 Subject: [PATCH] fix gcc11/c++20 compatibility --- src/io/dense_bin.hpp | 2 +- src/io/multi_val_dense_bin.hpp | 2 +- src/io/multi_val_sparse_bin.hpp | 2 +- src/io/sparse_bin.hpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/io/dense_bin.hpp b/src/io/dense_bin.hpp index 20ffd724e34c..7f7bc7245500 100644 --- a/src/io/dense_bin.hpp +++ b/src/io/dense_bin.hpp @@ -470,7 +470,7 @@ class DenseBin : public Bin { #endif std::vector buf_; - DenseBin(const DenseBin& other) + DenseBin(const DenseBin& other) : num_data_(other.num_data_), data_(other.data_) {} }; diff --git a/src/io/multi_val_dense_bin.hpp b/src/io/multi_val_dense_bin.hpp index 9559e38b7f72..76bd69e65b18 100644 --- a/src/io/multi_val_dense_bin.hpp +++ b/src/io/multi_val_dense_bin.hpp @@ -217,7 +217,7 @@ class MultiValDenseBin : public MultiValBin { std::vector offsets_; std::vector> data_; - MultiValDenseBin(const MultiValDenseBin& other) + MultiValDenseBin(const MultiValDenseBin& other) : num_data_(other.num_data_), num_bin_(other.num_bin_), num_feature_(other.num_feature_), offsets_(other.offsets_), data_(other.data_) { } diff --git a/src/io/multi_val_sparse_bin.hpp b/src/io/multi_val_sparse_bin.hpp index 1699380732c6..48b418c75a15 100644 --- a/src/io/multi_val_sparse_bin.hpp +++ b/src/io/multi_val_sparse_bin.hpp @@ -302,7 +302,7 @@ class MultiValSparseBin : public MultiValBin { std::vector t_size_; std::vector offsets_; - MultiValSparseBin( + MultiValSparseBin( const MultiValSparseBin& other) : num_data_(other.num_data_), num_bin_(other.num_bin_), diff --git a/src/io/sparse_bin.hpp b/src/io/sparse_bin.hpp index e4259a48862b..b5eb077e2dbe 100644 --- a/src/io/sparse_bin.hpp +++ b/src/io/sparse_bin.hpp @@ -598,7 +598,7 @@ class SparseBin : public Bin { SparseBin* Clone() override; - SparseBin(const SparseBin& other) + SparseBin(const SparseBin& other) : num_data_(other.num_data_), deltas_(other.deltas_), vals_(other.vals_),