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 "StaticSocketAddress.hxx"
|
||||||
#include "IPv4Address.hxx"
|
#include "IPv4Address.hxx"
|
||||||
#include "IPv6Address.hxx"
|
#include "IPv6Address.hxx"
|
||||||
#include "util/StringView.hxx"
|
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
@ -46,7 +45,7 @@ StaticSocketAddress::operator=(SocketAddress other) noexcept
|
|||||||
|
|
||||||
#ifdef HAVE_UN
|
#ifdef HAVE_UN
|
||||||
|
|
||||||
StringView
|
std::string_view
|
||||||
StaticSocketAddress::GetLocalRaw() const noexcept
|
StaticSocketAddress::GetLocalRaw() const noexcept
|
||||||
{
|
{
|
||||||
return SocketAddress(*this).GetLocalRaw();
|
return SocketAddress(*this).GetLocalRaw();
|
||||||
|
@ -34,8 +34,7 @@
|
|||||||
#include "Features.hxx"
|
#include "Features.hxx"
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
#include <string_view>
|
||||||
struct StringView;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An OO wrapper for struct sockaddr_storage.
|
* An OO wrapper for struct sockaddr_storage.
|
||||||
@ -120,7 +119,7 @@ public:
|
|||||||
* @see SocketAddress::GetLocalRaw()
|
* @see SocketAddress::GetLocalRaw()
|
||||||
*/
|
*/
|
||||||
[[gnu::pure]]
|
[[gnu::pure]]
|
||||||
StringView GetLocalRaw() const noexcept;
|
std::string_view GetLocalRaw() const noexcept;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_TCP
|
#ifdef HAVE_TCP
|
||||||
|
Loading…
Reference in New Issue
Block a user