feat: make a matcher ElementsAreArray applicable for std ranges

pull/3429/head
Vasilii Pochkaenko 4 years ago committed by Vasilii POchkaenko
parent ae8d1fc81b
commit 5ef9f63a72
  1. 4
      googlemock/include/gmock/gmock-matchers.h

@ -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());
}

Loading…
Cancel
Save