add spaces around user defined literal suffix operators
This commit is contained in:
parent
e8543ecf54
commit
b2c3b4dbf8
|
@ -83,7 +83,7 @@ using lt::cache_status;
|
||||||
using lt::total_seconds;
|
using lt::total_seconds;
|
||||||
using lt::torrent_flags_t;
|
using lt::torrent_flags_t;
|
||||||
using lt::seconds;
|
using lt::seconds;
|
||||||
using lt::operator""_sv;
|
using lt::operator "" _sv;
|
||||||
using lt::address_v4;
|
using lt::address_v4;
|
||||||
using lt::address_v6;
|
using lt::address_v6;
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,7 @@ namespace libtorrent {
|
||||||
|
|
||||||
inline namespace literals {
|
inline namespace literals {
|
||||||
|
|
||||||
constexpr string_view operator""_sv(char const* str, std::size_t len)
|
constexpr string_view operator "" _sv(char const* str, std::size_t len)
|
||||||
{ return string_view(str, len); }
|
{ return string_view(str, len); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ using test_flags_t = libtorrent::flags::bitfield_flag<std::uint32_t, struct test
|
||||||
|
|
||||||
namespace test_flags
|
namespace test_flags
|
||||||
{
|
{
|
||||||
using libtorrent::operator ""_bit;
|
using libtorrent::operator "" _bit;
|
||||||
constexpr test_flags_t super_seeding = 1_bit;
|
constexpr test_flags_t super_seeding = 1_bit;
|
||||||
constexpr test_flags_t strict_super_seeding = 2_bit;
|
constexpr test_flags_t strict_super_seeding = 2_bit;
|
||||||
constexpr test_flags_t seed_mode = 3_bit;
|
constexpr test_flags_t seed_mode = 3_bit;
|
||||||
|
|
|
@ -42,7 +42,7 @@ namespace libtorrent
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline lt::download_priority_t operator ""_pri(unsigned long long const p)
|
inline lt::download_priority_t operator "" _pri(unsigned long long const p)
|
||||||
{
|
{
|
||||||
return lt::download_priority_t(static_cast<std::uint8_t>(p));
|
return lt::download_priority_t(static_cast<std::uint8_t>(p));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue