projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e25cc6e
)
Fix a namespace issue
author
Giuseppe Ottaviano
<ott@fb.com>
Sun, 24 Jul 2016 17:21:07 +0000
(10:21 -0700)
committer
Facebook Github Bot 8
<facebook-github-bot-8-bot@fb.com>
Sun, 24 Jul 2016 17:23:27 +0000
(10:23 -0700)
Reviewed By: dkgi
Differential Revision:
D3586189
fbshipit-source-id:
ce817233a0293e19400b5689c283531be6302c10
folly/test/EnumerateTest.cpp
patch
|
blob
|
history
diff --git
a/folly/test/EnumerateTest.cpp
b/folly/test/EnumerateTest.cpp
index 1b6fe223dfaa0c1a4d5aca5957254d4701bd6ec9..5466ddcd1c55a9a81de208a35517e7bb7075277f 100644
(file)
--- a/
folly/test/EnumerateTest.cpp
+++ b/
folly/test/EnumerateTest.cpp
@@
-53,6
+53,8
@@
TEST(Enumerate, Temporary) {
EXPECT_EQ(i, v.size());
};
+namespace {
+
template <class T>
struct IsConstReference {
constexpr static bool value = false;
@@
-62,6
+64,8
@@
struct IsConstReference<const T&> {
constexpr static bool value = true;
};
+} // namespace
+
TEST(Enumerate, BasicConstArg) {
const std::vector<std::string> v = {"abc", "a", "ab"};
size_t i = 0;