net/StaticSocketAddress: add SocketAddress cast constructor

This commit is contained in:
Max Kellermann 2023-08-30 10:28:17 +02:00 committed by Max Kellermann
parent 34ec024bf4
commit 35cfa6efa3

View File

@ -26,6 +26,10 @@ private:
public: public:
StaticSocketAddress() = default; StaticSocketAddress() = default;
explicit StaticSocketAddress(SocketAddress src) noexcept {
*this = src;
}
StaticSocketAddress &operator=(SocketAddress other) noexcept; StaticSocketAddress &operator=(SocketAddress other) noexcept;
constexpr operator SocketAddress() const noexcept { constexpr operator SocketAddress() const noexcept {