Skip to content

Commit b94ea71

Browse files
committed
fix literal operator declaration
1 parent e06de31 commit b94ea71

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

examples/client_test.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ using lt::add_torrent_params;
109109
using lt::total_seconds;
110110
using lt::torrent_flags_t;
111111
using lt::seconds;
112-
using lt::operator "" _sv;
112+
using lt::operator ""_sv;
113113
using lt::address_v4;
114114
using lt::address_v6;
115115
using lt::make_address_v6;

test/enum_if.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ using namespace lt;
4242

4343
namespace {
4444

45-
std::string operator "" _s(char const* str, size_t len) { return std::string(str, len); }
45+
std::string operator ""_s(char const* str, size_t len) { return std::string(str, len); }
4646

4747
std::string print_flags(interface_flags const f)
4848
{

test/swarm_suite.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ using test_flags_t = lt::flags::bitfield_flag<std::uint32_t, struct test_flags_t
3939

4040
namespace test_flags
4141
{
42-
using lt::operator "" _bit;
42+
using lt::operator ""_bit;
4343
constexpr test_flags_t super_seeding = 1_bit;
4444
constexpr test_flags_t strict_super_seeding = 2_bit;
4545
constexpr test_flags_t seed_mode = 3_bit;

test/test_utils.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ namespace libtorrent
5353
EXPORT std::string test_listen_interface();
5454
}
5555

56-
constexpr inline lt::download_priority_t operator "" _pri(unsigned long long const p)
56+
constexpr inline lt::download_priority_t operator ""_pri(unsigned long long const p)
5757
{ return lt::download_priority_t(static_cast<std::uint8_t>(p)); }
5858

59-
constexpr inline lt::file_index_t operator "" _file(unsigned long long const p)
59+
constexpr inline lt::file_index_t operator ""_file(unsigned long long const p)
6060
{ return lt::file_index_t(static_cast<int>(p)); }
6161

62-
constexpr inline lt::piece_index_t operator "" _piece(unsigned long long const p)
62+
constexpr inline lt::piece_index_t operator ""_piece(unsigned long long const p)
6363
{ return lt::piece_index_t(static_cast<int>(p)); }
6464

6565
EXPORT std::vector<char> serialize(lt::torrent_info const& ti);

0 commit comments

Comments
 (0)