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:
Gennadiy Rozental 2019-06-18 13:41:24 -04:00 committed by GitHub
commit 310a11865c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1793,8 +1793,8 @@ TEST(VariantTest, VisitSimple) {
EXPECT_EQ("B", piece);
struct StrLen {
int operator()(const std::string& s) const { return s.size(); }
int operator()(const char* s) const { return strlen(s); }
int operator()(const std::string& s) const { return s.size(); }
};
v = "SomeStr";