From 364839ab142e5d6e4efc89953e0911267d7c5502 Mon Sep 17 00:00:00 2001 From: Krystian Kuzniarek Date: Tue, 13 Aug 2019 23:59:59 +0200 Subject: remove a custom implementation of std::remove_const --- googlemock/include/gmock/internal/gmock-internal-utils.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'googlemock/include/gmock/internal/gmock-internal-utils.h') diff --git a/googlemock/include/gmock/internal/gmock-internal-utils.h b/googlemock/include/gmock/internal/gmock-internal-utils.h index ee004790..4d754836 100644 --- a/googlemock/include/gmock/internal/gmock-internal-utils.h +++ b/googlemock/include/gmock/internal/gmock-internal-utils.h @@ -429,8 +429,8 @@ class StlContainerView { static const_reference ConstReference(const RawContainer& container) { // Ensures that RawContainer is not a const type. - testing::StaticAssertTypeEq(); + testing::StaticAssertTypeEq< + RawContainer, typename std::remove_const::type>(); return container; } static type Copy(const RawContainer& container) { return container; } @@ -440,7 +440,7 @@ class StlContainerView { template class StlContainerView { public: - typedef GTEST_REMOVE_CONST_(Element) RawElement; + typedef typename std::remove_const::type RawElement; typedef internal::NativeArray type; // NativeArray can represent a native array either by value or by // reference (selected by a constructor argument), so 'const type' @@ -464,8 +464,8 @@ class StlContainerView { template class StlContainerView< ::std::tuple > { public: - typedef GTEST_REMOVE_CONST_( - typename internal::PointeeOf::type) RawElement; + typedef typename std::remove_const< + typename internal::PointeeOf::type>::type RawElement; typedef internal::NativeArray type; typedef const type const_reference; -- cgit v1.2.3