From 483f1729387e5a834f7ea9ba40a255a8dbc45666 Mon Sep 17 00:00:00 2001 From: Morgan Funtowicz Date: Sun, 11 Aug 2024 14:10:12 +0200 Subject: [PATCH] (ffi) do not use reference capture in lambda as we are not capturing anything --- backends/trtllm/src/ffi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/trtllm/src/ffi.cpp b/backends/trtllm/src/ffi.cpp index 5121b75c..35b0a48f 100644 --- a/backends/trtllm/src/ffi.cpp +++ b/backends/trtllm/src/ffi.cpp @@ -43,7 +43,7 @@ huggingface::tgi::backends::TensorRtLlmBackendImpl::PullTokens() { SPDLOG_DEBUG(FMT_STRING("Pulled out {:d} new tokens"), responses->size()); // Transform tle::Response to GenerationStep - std::ranges::transform(responses.begin(), responses.end(), std::back_inserter(*steps), [&](const tle::Response &r) { + std::ranges::transform(responses.begin(), responses.end(), std::back_inserter(*steps), [](const tle::Response &r) { const auto reqId = r.getRequestId(); if (!r.hasError()) { const auto result = r.getResult();