Googletest export

Fix #2987
Removing const before passing any types through UniversalPrinter.

PiperOrigin-RevId: 356508875
This commit is contained in:
Abseil Team
2021-02-09 11:37:05 -05:00
committed by Andy Soffer
parent 9c2293af06
commit af058521ad
2 changed files with 38 additions and 0 deletions

View File

@@ -677,6 +677,10 @@ class UniversalPrinter {
GTEST_DISABLE_MSC_WARNINGS_POP_()
};
// Remove any const-qualifiers before passing a type to UniversalPrinter.
template <typename T>
class UniversalPrinter<const T> : public UniversalPrinter<T> {};
#if GTEST_INTERNAL_HAS_ANY
// Printer for std::any / absl::any