From 45f2bdb486ea64afdb7b3045179514291ec1607d Mon Sep 17 00:00:00 2001 From: Anna Gringauze Date: Sat, 6 Feb 2016 21:37:17 +0000 Subject: [PATCH] Fixed compilation issues with gcc and clang --- include/string_span.h | 8 ++++---- tests/string_span_tests.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/string_span.h b/include/string_span.h index 786e055..46bf2d4 100644 --- a/include/string_span.h +++ b/include/string_span.h @@ -588,16 +588,16 @@ private: impl_type span_; }; -template +template using zstring_span = basic_zstring_span; -template +template using wzstring_span = basic_zstring_span; -template +template using czstring_span = basic_zstring_span; -template +template using cwzstring_span = basic_zstring_span; } // namespace GSL diff --git a/tests/string_span_tests.cpp b/tests/string_span_tests.cpp index 6abdcb9..28d7353 100644 --- a/tests/string_span_tests.cpp +++ b/tests/string_span_tests.cpp @@ -846,7 +846,7 @@ SUITE(string_span_tests) span[last] = '\0'; auto ret = span.subspan(0, 4); - return ret; + return{ ret }; } TEST(zstring) @@ -903,7 +903,7 @@ SUITE(string_span_tests) span[last] = L'\0'; auto ret = span.subspan(0, 4); - return ret; + return{ ret }; } TEST(wzstring)