net/StaticSocketAddress: use std::string_view instead of StringView
This commit is contained in:
parent
b5a9d0654e
commit
6ebac6a0b2
|
@ -30,7 +30,6 @@
|
|||
#include "StaticSocketAddress.hxx"
|
||||
#include "IPv4Address.hxx"
|
||||
#include "IPv6Address.hxx"
|
||||
#include "util/StringView.hxx"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
|
@ -46,7 +45,7 @@ StaticSocketAddress::operator=(SocketAddress other) noexcept
|
|||
|
||||
#ifdef HAVE_UN
|
||||
|
||||
StringView
|
||||
std::string_view
|
||||
StaticSocketAddress::GetLocalRaw() const noexcept
|
||||
{
|
||||
return SocketAddress(*this).GetLocalRaw();
|
||||
|
|
|
@ -34,8 +34,7 @@
|
|||
#include "Features.hxx"
|
||||
|
||||
#include <cassert>
|
||||
|
||||
struct StringView;
|
||||
#include <string_view>
|
||||
|
||||
/**
|
||||
* An OO wrapper for struct sockaddr_storage.
|
||||
|
@ -120,7 +119,7 @@ public:
|
|||
* @see SocketAddress::GetLocalRaw()
|
||||
*/
|
||||
[[gnu::pure]]
|
||||
StringView GetLocalRaw() const noexcept;
|
||||
std::string_view GetLocalRaw() const noexcept;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_TCP
|
||||
|
|
Loading…
Reference in New Issue