diff --git a/src/braft/configuration.h b/src/braft/configuration.h index 65af782b..21dae30d 100644 --- a/src/braft/configuration.h +++ b/src/braft/configuration.h @@ -75,6 +75,8 @@ struct PeerId { snprintf(str, sizeof(str), "%s:%d", butil::endpoint2str(addr).c_str(), idx); return std::string(str); } + + PeerId& operator=(const PeerId& rhs) = default; }; inline bool operator<(const PeerId& id1, const PeerId& id2) {