net/{Allocated,Static}SocketAddress: inline GetLocalRaw()
This commit is contained in:
parent
2a206ef309
commit
f8529d4fe6
@ -37,12 +37,6 @@ AllocatedSocketAddress::SetSize(size_type new_size) noexcept
|
||||
|
||||
#ifdef HAVE_UN
|
||||
|
||||
std::string_view
|
||||
AllocatedSocketAddress::GetLocalRaw() const noexcept
|
||||
{
|
||||
return SocketAddress(*this).GetLocalRaw();
|
||||
}
|
||||
|
||||
void
|
||||
AllocatedSocketAddress::SetLocal(const char *path) noexcept
|
||||
{
|
||||
|
@ -125,7 +125,9 @@ public:
|
||||
* @see SocketAddress::GetLocalRaw()
|
||||
*/
|
||||
[[gnu::pure]]
|
||||
std::string_view GetLocalRaw() const noexcept;
|
||||
std::string_view GetLocalRaw() const noexcept {
|
||||
return static_cast<const SocketAddress>(*this).GetLocalRaw();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see SocketAddress::GetLocalPath()
|
||||
|
@ -17,16 +17,6 @@ StaticSocketAddress::operator=(SocketAddress other) noexcept
|
||||
return *this;
|
||||
}
|
||||
|
||||
#ifdef HAVE_UN
|
||||
|
||||
std::string_view
|
||||
StaticSocketAddress::GetLocalRaw() const noexcept
|
||||
{
|
||||
return SocketAddress(*this).GetLocalRaw();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_TCP
|
||||
|
||||
bool
|
||||
|
@ -103,7 +103,9 @@ public:
|
||||
* @see SocketAddress::GetLocalRaw()
|
||||
*/
|
||||
[[gnu::pure]]
|
||||
std::string_view GetLocalRaw() const noexcept;
|
||||
std::string_view GetLocalRaw() const noexcept {
|
||||
return static_cast<const SocketAddress>(*this).GetLocalRaw();
|
||||
}
|
||||
|
||||
/**
|
||||
* @see SocketAddress::GetLocalPath()
|
||||
|
Loading…
Reference in New Issue
Block a user