From af058521adb3a12c0e2d69a219f81a133b244ee6 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Tue, 9 Feb 2021 11:37:05 -0500 Subject: Googletest export Fix #2987 Removing const before passing any types through UniversalPrinter. PiperOrigin-RevId: 356508875 --- googletest/include/gtest/gtest-printers.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'googletest/include/gtest/gtest-printers.h') diff --git a/googletest/include/gtest/gtest-printers.h b/googletest/include/gtest/gtest-printers.h index 0a8da3bd..cd094949 100644 --- a/googletest/include/gtest/gtest-printers.h +++ b/googletest/include/gtest/gtest-printers.h @@ -677,6 +677,10 @@ class UniversalPrinter { GTEST_DISABLE_MSC_WARNINGS_POP_() }; +// Remove any const-qualifiers before passing a type to UniversalPrinter. +template +class UniversalPrinter : public UniversalPrinter {}; + #if GTEST_INTERNAL_HAS_ANY // Printer for std::any / absl::any -- cgit v1.2.1