The order of the operators in the struct should match the order of the test cases
This makes it a bit easier to follow the logic for anyone reading the tests as docs.
This commit is contained in:
parent
361cb8a9db
commit
56ffa78ce3
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue