Skip to content

Commit 7844257

Browse files
authored
[libc++] Use explicit #include instead of transitive #include (#115420)
This benchmark test currently uses `std::unique_ptr` without explicitly `#include <memory>`. I think we should not rely on transitive inclusion.
1 parent da9499e commit 7844257

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libcxx/test/benchmarks/vector_operations.bench.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
#include <cstring>
1414
#include <deque>
1515
#include <functional>
16+
#include <memory>
17+
#include <string>
1618
#include <vector>
1719

1820
#include "benchmark/benchmark.h"

0 commit comments

Comments
 (0)