summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Gennadiy Rozental <rogeeff@google.com>2019-06-18 13:41:24 -0400
committerGravatar GitHub <noreply@github.com>2019-06-18 13:41:24 -0400
commit310a11865c97c5cdcc42a4ee2c2e3578423afe69 (patch)
tree2a9564878a54fbc570f72586ab9c9513f61217a2
parent8f11724067248acc330b4d1f12f0c76d03f2cfb1 (diff)
parent56ffa78ce34095bae941f3cb95e25bdc3dc309ee (diff)
Merge pull request #324 from RasPat1/patch-1
The order of the operators in the struct should match the order of th…
-rw-r--r--absl/types/variant_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/types/variant_test.cc b/absl/types/variant_test.cc
index d7024827..2efaf21e 100644
--- a/absl/types/variant_test.cc
+++ b/absl/types/variant_test.cc
@@ -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";