Skip to content

Commit 1eebee3

Browse files
authored
Undo the string_view patch (#257)
1 parent 35592d5 commit 1eebee3

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

trantor/utils/LogStream.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
#include <string.h> // memcpy
2323
#include <string>
2424

25-
#if __cplusplus >= 201703L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)
26-
#include <string_view>
27-
#endif
28-
2925
namespace trantor
3026
{
3127
namespace detail
@@ -204,13 +200,6 @@ class TRANTOR_EXPORT LogStream : NonCopyable
204200
append(v.c_str(), v.size());
205201
return *this;
206202
}
207-
#if __cplusplus >= 201703L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)
208-
self &operator<<(const std::string_view v)
209-
{
210-
append(v.data(), v.length());
211-
return *this;
212-
}
213-
#endif
214203

215204
void append(const char *data, size_t len)
216205
{

0 commit comments

Comments
 (0)