Skip to content

Commit

Permalink
Fix compile error (facebookresearch#3162)
Browse files Browse the repository at this point in the history
Summary:
`WorkerThread.h` uses `std::function` but it does not have `#include <functional>` and this causes compile errors in some cases. This simple PR fixes this issue.

Pull Request resolved: facebookresearch#3162

Reviewed By: mlomeli1

Differential Revision: D51987803

Pulled By: algoriddle

fbshipit-source-id: 21db00a7c9836e83401bb2c82e86a49c80d52f88
  • Loading branch information
jaepil authored and facebook-github-bot committed Dec 11, 2023
1 parent d40b39a commit 9107035
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions faiss/utils/WorkerThread.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include <condition_variable>
#include <deque>
#include <functional>
#include <future>
#include <thread>

Expand Down

0 comments on commit 9107035

Please sign in to comment.