diff --git a/tcmalloc/internal/sampled_allocation_recorder.h b/tcmalloc/internal/sampled_allocation_recorder.h index 74db84f88..9428f2fde 100644 --- a/tcmalloc/internal/sampled_allocation_recorder.h +++ b/tcmalloc/internal/sampled_allocation_recorder.h @@ -89,7 +89,7 @@ class SampleRecorder { void UnregisterAll(); // Iterates over all the registered samples. - void Iterate(const absl::FunctionRef& f); + void Iterate(const absl::FunctionRef f); private: void PushNew(T* sample);