summaryrefslogtreecommitdiff
path: root/test/buildtool/build_engine/expression/linked_map.test.cpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-04-08 13:18:22 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-04-08 15:19:50 +0200
commit277be6dd08633dbebfda93afdfc6b5cb57e053e0 (patch)
tree6c86157c7f93636459361264054753a1dc9d33e9 /test/buildtool/build_engine/expression/linked_map.test.cpp
parent419a458ad9d4383eb47d51fe8e4408a0e240c2f1 (diff)
downloadjustbuild-277be6dd08633dbebfda93afdfc6b5cb57e053e0.tar.gz
Use properly included standard library types by default
Diffstat (limited to 'test/buildtool/build_engine/expression/linked_map.test.cpp')
-rw-r--r--test/buildtool/build_engine/expression/linked_map.test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/buildtool/build_engine/expression/linked_map.test.cpp b/test/buildtool/build_engine/expression/linked_map.test.cpp
index 0dfe7b72..4c9a996f 100644
--- a/test/buildtool/build_engine/expression/linked_map.test.cpp
+++ b/test/buildtool/build_engine/expression/linked_map.test.cpp
@@ -93,7 +93,7 @@ TEST_CASE("Lookup and iteration", "[linked_map]") {
class CopyCounter {
public:
- CopyCounter() : count_{std::make_shared<size_t>()} {}
+ CopyCounter() : count_{std::make_shared<std::size_t>()} {}
CopyCounter(CopyCounter const& other) {
++(*other.count_);
count_ = other.count_;
@@ -112,7 +112,7 @@ class CopyCounter {
private:
// all copies of this object share the same counter
- std::shared_ptr<size_t> count_{};
+ std::shared_ptr<std::size_t> count_{};
};
TEST_CASE("Zero copies", "[linked_map]") {