Skip to content

Commit

Permalink
Request copy assignment operator. (#18865)
Browse files Browse the repository at this point in the history
The copy assignment operator is being invoked for SocketOptionName implicitly. Explicitly request it.

This fixes compiling with clang-14.

Signed-off-by: Kevin Baichoo <kbaichoo@google.com>
  • Loading branch information
KBaichoo authored Nov 2, 2021
1 parent f393ff1 commit ca13cce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions envoy/network/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ namespace Network {
struct SocketOptionName {
SocketOptionName() = default;
SocketOptionName(const SocketOptionName&) = default;
SocketOptionName& operator=(const SocketOptionName&) = default;
SocketOptionName(int level, int option, const std::string& name)
: value_(std::make_tuple(level, option, name)) {}

Expand Down

0 comments on commit ca13cce

Please sign in to comment.