diff --git a/folly/container/test/RegexMatchCacheTest.cpp b/folly/container/test/RegexMatchCacheTest.cpp index a7739d29429..eefa266ebdb 100644 --- a/folly/container/test/RegexMatchCacheTest.cpp +++ b/folly/container/test/RegexMatchCacheTest.cpp @@ -365,7 +365,11 @@ struct RegexMatchCacheTest : testing::Test { } auto getRegexList(RegexMatchCache const& cache) const { - return cache.getRegexList(keys); + std::vector ret; + for (auto const item : cache.getRegexList(keys)) { + ret.emplace_back(item); + } + return ret; } auto lookup(RegexMatchCache& cache, std::string_view regex, time_point now) {