From b2c3b4dbf8bdf6d3b5fa59c2914f7698579866b9 Mon Sep 17 00:00:00 2001 From: arvidn Date: Wed, 21 Aug 2019 07:24:47 +0200 Subject: [PATCH] add spaces around user defined literal suffix operators --- examples/client_test.cpp | 2 +- include/libtorrent/string_view.hpp | 2 +- test/swarm_suite.hpp | 2 +- test/test_utils.hpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index 541ebbad5..1c4346485 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -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; diff --git a/include/libtorrent/string_view.hpp b/include/libtorrent/string_view.hpp index 802c4253f..fab72b32d 100644 --- a/include/libtorrent/string_view.hpp +++ b/include/libtorrent/string_view.hpp @@ -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); } } } diff --git a/test/swarm_suite.hpp b/test/swarm_suite.hpp index 9668c9e28..78243a3a8 100644 --- a/test/swarm_suite.hpp +++ b/test/swarm_suite.hpp @@ -37,7 +37,7 @@ using test_flags_t = libtorrent::flags::bitfield_flag(p)); }