From 3f56b62c457fca8748ccf0f5ef88b8ceb8e5c0e8 Mon Sep 17 00:00:00 2001 From: Jihoon Oh Date: Mon, 28 Oct 2024 12:47:25 -0700 Subject: [PATCH] include algorithm to fix build fail (#165) Summary: I encountered problem when I build with "ninja all" command ```bash /home/leus/prog/vrs/vrs/helpers/JobQueue.h: In member function 'void vrs::JobQueue::cancelQueuedJobs(std::function, std::function)': /home/leus/prog/vrs/vrs/helpers/JobQueue.h:118:22: error: 'remove_if' is not a member of 'std'; did you mean 'remove_cv'? 118 | auto iter = std::remove_if(queue_.begin(), queue_.end(), selector); /home/leus/prog/vrs/vrs/test/DataLayoutTest.cpp:146:42: error: 'count' was not declared in this scope 146 | size_t lineCount = static_cast(count(json.begin(), json.end(), '\n')); ``` This PR will fix problem above. Pull Request resolved: https://github.com/facebookresearch/vrs/pull/165 Test Plan: CI Reviewed By: hanghu Differential Revision: D65047136 Pulled By: georges-berenger fbshipit-source-id: e508623ee7ccf1b40f27df8c2cda6a703a087473 --- vrs/helpers/JobQueue.h | 1 + vrs/test/DataLayoutTest.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/vrs/helpers/JobQueue.h b/vrs/helpers/JobQueue.h index b8e14fec..e15f0e06 100644 --- a/vrs/helpers/JobQueue.h +++ b/vrs/helpers/JobQueue.h @@ -16,6 +16,7 @@ #pragma once +#include #include #include #include diff --git a/vrs/test/DataLayoutTest.cpp b/vrs/test/DataLayoutTest.cpp index c37ef371..526da466 100644 --- a/vrs/test/DataLayoutTest.cpp +++ b/vrs/test/DataLayoutTest.cpp @@ -14,6 +14,7 @@ * limitations under the License. */ +#include #include #include #include