Fix build with gcc
It fails because gcc infers that the auto argument is a pointer rather than a reference:
error: request for member 'Type' in 'ctrDescription', which is of pointer type 'NCatboostOptions::TCtrDescription* const' (maybe you meant to use '->' ?)
Note: mandatory check (NEED_CHECK) was skipped
@@ -315,7 +315,7 @@ bool NCatboostOptions::CtrsNeedTargetData(const NCatboostOptions::TCatFeaturePar
bool ctrsNeedTargetData = false;
catFeatureParams.ForEachCtrDescription(
- [&] (const auto& ctrDescription) {
+ [&] (const NCatboostOptions::TCtrDescription& ctrDescription) {
if (NeedTarget(ctrDescription.Type)) {
ctrsNeedTargetData = true;
}
