From 2db382363266f8781e00246dd3012636b9476ff9 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Fri, 22 Sep 2017 00:07:42 +0000 Subject: [PATCH] Revert "Base: Delete ostream<< with std::string*" This reverts commit 4ef5011a7b3b20703c58a1af0589e72b20812026. Reason for revert: Breaks an internal mocking case that cannot be changed. Test: m Change-Id: I83f9338bde02eb2b45b3e52b66ef78490ddbeeda --- base/include/android-base/logging.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/base/include/android-base/logging.h b/base/include/android-base/logging.h index f18cc0ca8..548b286c4 100644 --- a/base/include/android-base/logging.h +++ b/base/include/android-base/logging.h @@ -438,14 +438,4 @@ class ScopedLogSeverity { } // namespace base } // namespace android -namespace std { - -// Delete << with string* to avoid mistakes. The intention was most likely to print *string. -// If you really want to print the pointer, consider static_cast. -// -// Note: for this to work, we need to have this in a namespace. -std::ostream& operator<<(std::ostream& stream, const std::string* string_pointer) = delete; - -} // namespace std - #endif // ANDROID_BASE_LOGGING_H