projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix building the stl_vector tests with -Wshadow-compatible-local
[folly.git]
/
folly
/
test
/
stl_tests
/
StlVectorTest.cpp
diff --git
a/folly/test/stl_tests/StlVectorTest.cpp
b/folly/test/stl_tests/StlVectorTest.cpp
index f82d741af2422c0fb575bcb8b1b3557fc953087c..257a0e8d811d6911fcc93f834237e18b7b4ad14f 100644
(file)
--- a/
folly/test/stl_tests/StlVectorTest.cpp
+++ b/
folly/test/stl_tests/StlVectorTest.cpp
@@
-1682,8
+1682,8
@@
STL_TEST("23.2.1 Table 96.10-11", copyConstruction,
) << "only a shallow copy was made";
if (false) {
- Vector(ca);
- Vector u
= ca
;
+ Vector(ca
2
);
+ Vector u
2 = ca2
;
}
}
@@
-1699,7
+1699,7
@@
STL_TEST("23.2.1 Table 96.12", moveConstruction, is_destructible, a) {
ASSERT_TRUE(dsa == u);
if (false) {
- Vector u = move(a);
+ Vector u
2
= move(a);
}
}