From 75c07c01c46bf4cd8edb4d0e17aa4b5aba3a1313 Mon Sep 17 00:00:00 2001 From: hai007 Date: Tue, 13 Jul 2021 15:39:35 -0700 Subject: [PATCH] Internal change PiperOrigin-RevId: 384567436 --- cpp/core/strategy.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cpp/core/strategy.h b/cpp/core/strategy.h index 09b25d62..3788b250 100644 --- a/cpp/core/strategy.h +++ b/cpp/core/strategy.h @@ -32,9 +32,8 @@ class Strategy { constexpr Strategy() : Strategy(kNone) {} - constexpr Strategy(const Strategy& other) - : connection_type_(other.connection_type_), - topology_type_(other.topology_type_) {} + constexpr Strategy(const Strategy&) = default; + constexpr Strategy& operator=(const Strategy&) = default; // Returns true, if strategy is kNone, false otherwise. bool IsNone() const;