facebookresearch / vrs

VRS is a file format optimized to record & playback streams of sensor data, such as images, audio samples, and any other discrete sensors (IMU, temperature, etc), stored in per-device streams of timestamped records.
https://facebookresearch.github.io/vrs/
Apache License 2.0
323 stars 55 forks source link

include algorithm to fix build fail #165

Closed ojh6404 closed 1 week ago

ojh6404 commented 1 week ago

I encountered problem when I build with "ninja all" command

/home/leus/prog/vrs/vrs/helpers/JobQueue.h: In member function 'void vrs::JobQueue<T>::cancelQueuedJobs(std::function<bool(const T&)>, std::function<void(const T&)>)':
/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<size_t>(count(json.begin(), json.end(), '\n'));

This PR will fix problem above.

facebook-github-bot commented 1 week ago

@georges-berenger has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

georges-berenger commented 1 week ago

thanks for the code change.