(const TrainParams & params) is not C++ 11