Commit 310a1186 by Gennadiy Rozental Committed by GitHub

Merge pull request #324 from RasPat1/patch-1

The order of the operators in the struct should match the order of th…
parents 8f117240 56ffa78c
...@@ -1793,8 +1793,8 @@ TEST(VariantTest, VisitSimple) { ...@@ -1793,8 +1793,8 @@ TEST(VariantTest, VisitSimple) {
EXPECT_EQ("B", piece); EXPECT_EQ("B", piece);
struct StrLen { struct StrLen {
int operator()(const std::string& s) const { return s.size(); }
int operator()(const char* s) const { return strlen(s); } int operator()(const char* s) const { return strlen(s); }
int operator()(const std::string& s) const { return s.size(); }
}; };
v = "SomeStr"; v = "SomeStr";
......
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