Commit 39dbe579 authored by Giuseppe Ottaviano's avatar Giuseppe Ottaviano Committed by Facebook Github Bot 8

Fix a namespace issue

Reviewed By: dkgi

Differential Revision: D3586189

fbshipit-source-id: ce817233a0293e19400b5689c283531be6302c10
parent e25cc6ea
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment