Fix SimplerObservable build with -Werror=unused-local-typedefs
[folly.git] / folly / Memory.h
index 81ac176cb11a3494923ff5f378844472f0f1f926..62490f90b80abf2f1ee8c1d842880d636b4e20cc 100644 (file)
@@ -88,7 +88,9 @@ make_unique(Args&&...) = delete;
 
 template <typename T, void(*f)(T*)>
 struct static_function_deleter {
-  void operator()(T* t) { f(t); }
+  void operator()(T* t) const {
+    f(t);
+  }
 };
 
 /**