Skip to content

Commit

Permalink
Fix MSVC fake constexpr.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Feb 10, 2020
1 parent b476a56 commit 545726d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/cpp/predictor/test_predictor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ TEST(Predictor, PredictionCache) {
PredictionContainer container;
DMatrix* m;
// Add a cache that is immediately expired.
auto add_cache = [&container, &m]() {
auto add_cache = [&]() {
auto *pp_dmat = CreateDMatrix(kRows, kCols, 0);
auto p_dmat = *pp_dmat;
container.Cache(p_dmat, GenericParameter::kCpuId);
Expand Down

0 comments on commit 545726d

Please sign in to comment.