diff --git a/tf2/test/cache_benchmark.cpp b/tf2/test/cache_benchmark.cpp index 4d0ea19f..af7241f0 100644 --- a/tf2/test/cache_benchmark.cpp +++ b/tf2/test/cache_benchmark.cpp @@ -54,7 +54,7 @@ static void benchmark_insertion(benchmark::State & state) } // Insert data to cache - auto insert_data = [&example_items, num_tform, dt]( + auto insert_data = [ =, &example_items]( tf2::TimeCache & cache, tf2::TimePoint timestamp, int step,