From 2bf85721c49b3d19707040aa986111d010402394 Mon Sep 17 00:00:00 2001 From: Jaepil Jeong Date: Mon, 11 Dec 2023 05:42:10 -0800 Subject: [PATCH] Fix compile error (#3162) Summary: `WorkerThread.h` uses `std::function` but it does not have `#include ` and this causes compile errors in some cases. This simple PR fixes this issue. Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3162 Reviewed By: mlomeli1 Differential Revision: D51987803 Pulled By: algoriddle fbshipit-source-id: 21db00a7c9836e83401bb2c82e86a49c80d52f88 --- faiss/utils/WorkerThread.h | 1 + 1 file changed, 1 insertion(+) diff --git a/faiss/utils/WorkerThread.h b/faiss/utils/WorkerThread.h index 72529be0a3..3f2377eba2 100644 --- a/faiss/utils/WorkerThread.h +++ b/faiss/utils/WorkerThread.h @@ -9,6 +9,7 @@ #include #include +#include #include #include