From 1e87c35b8f9741f16730af3edfece09adc8e420f Mon Sep 17 00:00:00 2001 From: An Tao Date: Tue, 25 May 2021 16:51:49 +0800 Subject: [PATCH] Fix a bug of string_view for MSVC (#870) --- lib/inc/drogon/utils/string_view.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/inc/drogon/utils/string_view.h b/lib/inc/drogon/utils/string_view.h index 3ee80463..d486a867 100644 --- a/lib/inc/drogon/utils/string_view.h +++ b/lib/inc/drogon/utils/string_view.h @@ -39,7 +39,7 @@ inline LogStream &operator<<(LogStream &ls, const drogon::string_view &v) } } // namespace trantor -#if __cplusplus < 201703L +#if __cplusplus < 201703L && !(defined _MSC_VER && _MSC_VER > 1900) namespace std { template <>