std::remove_if requires <algorithm>

Summary:
fixes error (that occurred on gcc-7):

error:

util/env_basic_test.cc: In member function 'virtual rocksdb::Status rocksdb::NormalizingEnvWrapper::GetChildren(const string&, std::vector<std::__cxx11::basic_string<char> >*)':
util/env_basic_test.cc:27:21: error: 'remove_if' is not a member of 'std'
       result->erase(std::remove_if(result->begin(), result->end(),
                     ^~~
Closes https://github.com/facebook/rocksdb/pull/1674

Differential Revision: D4331221

Pulled By: ajkr

fbshipit-source-id: 9bbdc78
main
Daniel Black 8 years ago committed by Facebook Github Bot
parent 83f9a6fd21
commit 477b6ea578
  1. 1
      util/env_basic_test.cc

@ -5,6 +5,7 @@
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include "rocksdb/env.h"
#include "rocksdb/utilities/env_registry.h"

Loading…
Cancel
Save