Skip to content

Commit

Permalink
MSVC.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jul 13, 2022
1 parent 5fb3eb9 commit ee1b6a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/column_matrix.h
Expand Up @@ -152,7 +152,8 @@ class ColumnMatrix {
if (!any_missing_) {
missing_flags_.resize(feature_offsets_[n_features], false);
// row index is compressed, we need to dispatch it.
DispatchBinType(gmat.index.GetBinTypeSize(), [&, size = batch.Size()](auto t) {
DispatchBinType(gmat.index.GetBinTypeSize(), [&, size = batch.Size(), n_features = n_features,
n_threads = n_threads](auto t) {
using RowBinIdxT = decltype(t);
SetIndexNoMissing(base_rowid, gmat.index.data<RowBinIdxT>(), size, n_features, n_threads);
});
Expand Down

0 comments on commit ee1b6a4

Please sign in to comment.