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)