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;