Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29769551 authored by Andreas Gampe's avatar Andreas Gampe Committed by android-build-merger
Browse files

Merge "Revert "Base: Delete ostream<< with std::string*"" am: 7178e29c

am: 35784887

Change-Id: I2213f75007d44cf899b9b3ed55461160e101b467
parents c7e4b4c9 35784887
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -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<void*>.
//
// 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