Merge pull request #324 from RasPat1/patch-1
The order of the operators in the struct should match the order of th…
This commit is contained in:
commit
310a11865c
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