feat: make a matcher ElementsAreArray applicable for std ranges

This commit is contained in:
Vasilii Pochkaenko 2021-06-03 14:21:40 +07:00 committed by Vasilii POchkaenko
parent ae8d1fc81b
commit 5ef9f63a72

View File

@ -3527,8 +3527,8 @@ inline internal::ElementsAreArrayMatcher<T> ElementsAreArray(
}
template <typename Container>
inline internal::ElementsAreArrayMatcher<typename Container::value_type>
ElementsAreArray(const Container& container) {
inline auto ElementsAreArray(const Container& container)
-> decltype(ElementsAreArray(container.begin(), container.end())) {
return ElementsAreArray(container.begin(), container.end());
}