Skip to content

Commit

Permalink
change the library for copy_if func
Browse files Browse the repository at this point in the history
  • Loading branch information
osalyk committed Jul 11, 2024
1 parent 1bbb8e6 commit c52fcfa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tests/ras/utils/test_phase/local_test_phase.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "local_test_phase.h"
#include <boost/algorithm/cxx11/copy_if.hpp>

LocalTestPhase::LocalTestPhase() {
if (config_.ReadConfigFile() != 0) {
Expand All @@ -42,12 +43,12 @@ LocalTestPhase::LocalTestPhase() {
* the biggest number of tests with limited number of available NVDIMMS. */

int i = 0;
std::copy_if(config_.begin(), config_.end(),
boost::algorithm::copy_if(config_.begin(), config_.end(),
std::back_inserter(unsafe_namespaces),
[&i](DimmNamespace) -> bool { return i++ != 1; });

i = 0;
std::copy_if(config_.begin(), config_.end(),
boost::algorithm::copy_if(config_.begin(), config_.end(),
std::back_inserter(safe_namespaces),
[&i](DimmNamespace) -> bool { return i++ == 1; });
}
Expand Down

0 comments on commit c52fcfa

Please sign in to comment.