mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Fixed compilation issues with gcc and clang
This commit is contained in:
parent
ed906e7aae
commit
45f2bdb486
@ -588,16 +588,16 @@ private:
|
||||
impl_type span_;
|
||||
};
|
||||
|
||||
template <size_t Max = dynamic_range>
|
||||
template <std::ptrdiff_t Max = dynamic_range>
|
||||
using zstring_span = basic_zstring_span<char, Max>;
|
||||
|
||||
template <size_t Max = dynamic_range>
|
||||
template <std::ptrdiff_t Max = dynamic_range>
|
||||
using wzstring_span = basic_zstring_span<wchar_t, Max>;
|
||||
|
||||
template <size_t Max = dynamic_range>
|
||||
template <std::ptrdiff_t Max = dynamic_range>
|
||||
using czstring_span = basic_zstring_span<const char, Max>;
|
||||
|
||||
template <size_t Max = dynamic_range>
|
||||
template <std::ptrdiff_t Max = dynamic_range>
|
||||
using cwzstring_span = basic_zstring_span<const wchar_t, Max>;
|
||||
|
||||
} // namespace GSL
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user