From: Giuseppe Ottaviano Date: Sun, 24 Jul 2016 17:21:07 +0000 (-0700) Subject: Fix a namespace issue X-Git-Tag: 2016.07.26~5 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=39dbe579f09dabe6c4e55fd23efcb6db17518853;p=folly.git Fix a namespace issue Reviewed By: dkgi Differential Revision: D3586189 fbshipit-source-id: ce817233a0293e19400b5689c283531be6302c10 --- diff --git a/folly/test/EnumerateTest.cpp b/folly/test/EnumerateTest.cpp index 1b6fe223..5466ddcd 100644 --- a/folly/test/EnumerateTest.cpp +++ b/folly/test/EnumerateTest.cpp @@ -53,6 +53,8 @@ TEST(Enumerate, Temporary) { EXPECT_EQ(i, v.size()); }; +namespace { + template struct IsConstReference { constexpr static bool value = false; @@ -62,6 +64,8 @@ struct IsConstReference { constexpr static bool value = true; }; +} // namespace + TEST(Enumerate, BasicConstArg) { const std::vector v = {"abc", "a", "ab"}; size_t i = 0;