diff options
author | Vasilii Pochkaenko <pochkaenkov@yandex.ru> | 2021-06-03 07:21:40 (GMT) |
---|---|---|
committer | Vasilii POchkaenko <pochkaenkov@yandex.ru> | 2021-06-15 09:42:40 (GMT) |
commit | 5ef9f63a72bbc4814ad704d22c74b23530793bb2 (patch) | |
tree | 0d17d0b25b82c2abd6e34931c341bc423a0731de /googlemock/include/gmock | |
parent | ae8d1fc81b1469905b3d0fa6f8a077f58fc4b250 (diff) | |
download | googletest-5ef9f63a72bbc4814ad704d22c74b23530793bb2.zip googletest-5ef9f63a72bbc4814ad704d22c74b23530793bb2.tar.gz googletest-5ef9f63a72bbc4814ad704d22c74b23530793bb2.tar.bz2 |
feat: make a matcher ElementsAreArray applicable for std rangesrefs/pull/3429/head
Diffstat (limited to 'googlemock/include/gmock')
-rw-r--r-- | googlemock/include/gmock/gmock-matchers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/googlemock/include/gmock/gmock-matchers.h b/googlemock/include/gmock/gmock-matchers.h index 99f1774..b88199f 100644 --- a/googlemock/include/gmock/gmock-matchers.h +++ b/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()); } |