add spaces around user defined literal suffix operators

This commit is contained in:
arvidn 2019-08-21 07:24:47 +02:00 committed by Arvid Norberg
parent e8543ecf54
commit b2c3b4dbf8
4 changed files with 4 additions and 4 deletions

View File

@ -83,7 +83,7 @@ using lt::cache_status;
using lt::total_seconds;
using lt::torrent_flags_t;
using lt::seconds;
using lt::operator""_sv;
using lt::operator "" _sv;
using lt::address_v4;
using lt::address_v6;

View File

@ -96,7 +96,7 @@ namespace libtorrent {
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); }
}
}

View File

@ -37,7 +37,7 @@ using test_flags_t = libtorrent::flags::bitfield_flag<std::uint32_t, struct test
namespace test_flags
{
using libtorrent::operator ""_bit;
using libtorrent::operator "" _bit;
constexpr test_flags_t super_seeding = 1_bit;
constexpr test_flags_t strict_super_seeding = 2_bit;
constexpr test_flags_t seed_mode = 3_bit;

View File

@ -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));
}