Fixed compilation issues with gcc and clang

This commit is contained in:
Anna Gringauze 2016-02-06 21:37:17 +00:00
parent ed906e7aae
commit 45f2bdb486
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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)