Skip to content

Commit

Permalink
Fix R package Windows build. (#8065)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis authored Jul 13, 2022
1 parent 176fec8 commit 937352c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R-package/src/xgboost_R.cc
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ XGB_DLL SEXP XGDMatrixSetStrFeatureInfo_R(SEXP handle, SEXP field, SEXP array) {
}
std::vector<char const*> vec(len);
std::transform(str_info.cbegin(), str_info.cend(), vec.begin(),
[](auto const &str) { return str.c_str(); });
[](std::string const &str) { return str.c_str(); });
CHECK_CALL(XGDMatrixSetStrFeatureInfo(R_ExternalPtrAddr(handle), name, vec.data(), len));
R_API_END();
return R_NilValue;
Expand Down

0 comments on commit 937352c

Please sign in to comment.