From 5ef9f63a72bbc4814ad704d22c74b23530793bb2 Mon Sep 17 00:00:00 2001 From: Vasilii Pochkaenko Date: Thu, 3 Jun 2021 14:21:40 +0700 Subject: feat: make a matcher ElementsAreArray applicable for std ranges --- googlemock/include/gmock/gmock-matchers.h | 4 ++-- 1 file 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 ElementsAreArray( } template -inline internal::ElementsAreArrayMatcher -ElementsAreArray(const Container& container) { +inline auto ElementsAreArray(const Container& container) + -> decltype(ElementsAreArray(container.begin(), container.end())) { return ElementsAreArray(container.begin(), container.end()); } -- cgit v0.12