We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9736ab7 commit 8abea09Copy full SHA for 8abea09
trantor/utils/LogStream.h
@@ -22,7 +22,7 @@
22
#include <string.h> // memcpy
23
#include <string>
24
25
-#if __cplusplus >= 201703L
+#if __cplusplus >= 201703L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)
26
#include <string_view>
27
#endif
28
@@ -204,10 +204,10 @@ class TRANTOR_EXPORT LogStream : NonCopyable
204
append(v.c_str(), v.size());
205
return *this;
206
}
207
208
self &operator<<(const std::string_view v)
209
{
210
- append(v.begin(), v.size());
+ append(v.data(), v.length());
211
212
213
0 commit comments